When you mark a function as inline
, you hint the compiler that this function is a candidate for inlining. The compiler can still decide that it's not a good idea, and ignore it.
Is there a way to see if the function gets inlined or not, without using the disassembler? Is there some compiler warning that I don't know about maybe?
What are the rules for inlining that the compiler uses? Are there constructs that cause a function to never get inlined for example?