3 ms·
Depending on the simplicity of the program, the compiler may go ahead and inline it anyway!
by tonyarkles 9y ago
Depending on the simplicity of the program, the compiler may go ahead and inline it anyway!
- classichasclass 9y agoMy takeaway is the keyword's really just a hint anyhow. And that's borne out by the code dive.
- spc476 9y agoI use it to show intent, as functions I mark as inline are those that, pre-C99, would have most likely been a macro. I prefer the inline function over a macro as it prevents a certain class of errors and you get some additional type-checking that macros lack.