SLAU132V October 2004 – February 2020
The FUNC_CANNOT_INLINE pragma instructs the compiler that the named function cannot be expanded inline. Any function named with this pragma overrides any inlining you designate in any other way, such as using the inline keyword. Automatic inlining is also overridden with this pragma; see Section 2.11.
The pragma must appear before any declaration or reference to the function that you want to keep. In C, the argument func is the name of the function that cannot be inlined. In C++, the pragma applies to the next function declared.
The FUNC_CANNOT_INLINE pragma has the same effect as using the GCC-style noinline function attribute. See Section 5.17.2.
The syntax of the pragma in C is:
#pragma FUNC_CANNOT_INLINE (func) |
The syntax of the pragma in C++ is:
#pragma FUNC_CANNOT_INLINE |