What does extern inline do?

后端 未结 6 2082
闹比i
闹比i 2020-11-22 12:07

I understand that inline by itself is a suggestion to the compiler, and at its discretion it may or may not inline the function, and it will also produce linkab

6条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 12:22

    The situation with inline, static inline and extern inline is complicated, not least because gcc and C99 define slightly different meanings for their behavior (and presumably C++, as well). You can find some useful and detailed information about what they do in C here.

提交回复
热议问题