inline is a keyword in C ++ and C99.
__inline is a __inline - __inline keyword (such as MSVC ) for an inline function in C since C89 does not have one.
__inline__ is similar to __inline , but from a different set of compilers.
__forceinline is another __forceinline - __forceinline keyword (mainly MSVC) that will use more force to enable a feature than the __inline hint (for example, built-in, even if it leads to code degradation).
There is also __attribute__((always_inline)) in GCC and clang.
kennytm May 04 '10 at 12:29
source share