In the case where you want to a function to be inline in some cases and not others what about:
int small_function(int val)
int i = 0;
for(i = 0; i < 10000; i++)
This would support selective inlining, and also helps the programmer who is new to the code visualize what is going on - you don't need to see the definiton of small_function() to see that the function will be inlined.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds