#pragma INLINE: Inline Next Function Definition

Scope

Function Definition

Syntax

#pragma INLINE

Synonym

None

Arguments

None

Default

None

Description

This pragma directs the Compiler to inline the next function in the source.

The pragma is the same as using the -Oi compiler option.

Listing: Using an INLINE pragma to inline a function


int i; #pragma INLINE 
static void fun(void) { 
  i = 12; 
} 
void main(void) { 
  fun(); // results in inlining `i = 12;' 
} 
See also

#pragma NO_INLINE: Do not Inline next function definition

-Oi: Inlining