#To inline or not to inline

1 messages · Page 1 of 1 (latest)

thorny plinth
#

What is the difference between static and inline static functions?

mental socketBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

sullen hearth
#

If I understand the keywords correctly, static just limits the functions scope to the translation unit. inline then substitutes function calls with the actual code of the function instead of going through the process of calling a function

steel jacinth
#

its only a hint to the compiler

#

"you may inline it if you want to"

sullen hearth
#

Ah okay