SPRUIG8J January 2018 – March 2024
The inline keyword causes a function to be expanded inline at the point where it is called rather than using standard calling procedures. The compiler performs inline expansion of functions declared with the inline keyword.
You must invoke the optimizer with any --opt_level option to turn on definition-controlled inlining. Automatic inlining is also turned on when using --opt_level=3.
Example3-1 uses the inline keyword. The function call is replaced by the code in the called function.