What does __inline__ mean ?

后端 未结 5 1990
独厮守ぢ
独厮守ぢ 2020-12-08 19:14

I am trying to learn C. Reading through some code, I came across a line like this:

__inline__ void () ...

What does the __inline__

5条回答
  •  感情败类
    2020-12-08 20:16

    The __inline__ declaration tells the compiler that wherever the function will be called to "inline" the function instead. Inlineing is similar to using a macro -- the code will be expanded out as if you had written it all right where you called the function.

    See the GNU docs for more information.

提交回复
热议问题