compiler do it so we do not have to
The inlined function would be inserted in the module where it is called
If the inlined function is only used in that module(internal linkage). Then it is safe to grant it an access to the "private" stuff of that module.
Inline functions with internal linkage?
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
https://stackoverflow.com/questions/2398083/inline-functions-with-internal-linkage


Seonglae Cho