22 ms·
I assume adding "inline" in front of a function declaration without actually defining it in the same compilation unit doesn't result in inlining. If this is tru
by imtringued 9y ago
I assume adding "inline" in front of a function declaration without actually defining it in the same compilation unit doesn't result in inlining. If this is true the article is wrong and the only important aspect about inline is how it affects the linker.
- spc476 9y agoIt may very well depend upon the tool chain. The Solaris C compiler/linker can inline external functions (a previous developer at my company relied upon that behavior when writing code), but that's the only one I'm familiar with that behavior.