The always_inline function attribute

The always_inline function attribute instructs the compiler to inline an inline function, regardless of whether optimization was specified at compile time. However, the attribute has no effect if the program is compiled at no-opt levels. Specifying this attribute for a function without an inline specification also has no effect. The attribute takes precedence over inlining compiler options.

Read syntax diagramSkip visual syntax diagramalways_inline function attribute syntax
 
>>-__attribute__--((--+-always_inline-----+--))----------------><
                      '-__always_inline__-'
 

Related information