5.25 Inline Pragma

Use #pragma inline to advise the compiler that the function defined immediately after the directive should be inlined according to C++ inline semantics.

XC32 only has an equivalence for inline with no parameters. But other keywords cover the same functionality.
Note: The inline keyword will only be recognized with -finline or optimizations enabled. To replicate the functionality of forcing inlining then use "always_inline". To replicate the "never" parameter then use "never_inline".

Suggested Replacement

inline

always_inline

never_inline

Caveats

None.

Examples

Consider migrating IAR code such as:
#pragma inline[=forced|=never]
to MPLAB XC codes similar to:
inline void foo();

Further Information

None.