Function Definition
#pragma INLINE
None
None
None
This pragma directs the Compiler to inline the next function in the source.
The pragma produces the same results as using the -Oi compiler option.
The following code demonstrates using an INLINE pragma to inline a function.
int i;
#pragma INLINE
static void myfun(void) {
i = 12;
}
void main(void) {
myfun(); // results in inlining `i = 12;'
}
#pragma NO_INLINE: Do not Inline Next Function Definition
-Oi: Inlining compiler option