In the version of the C language that's supported by Visual Studio 2010, there is no word inline
. Only C++ has inline
. I don't think inline
became a part of C until the very latest version of the C standard (C11), which nobody supports yet.
Instead, you should use the word __inline
, which means the same thing. The underscores imply that this is an "extension," something that's not part of standard C.
Alternatively, you could put #define inline __inline
at the start of each file, or in a .h
header file which is #include
d at the beginning. That would automatically translate the word inline
to __inline
each time it appears.
(It's likely that the person who wrote that code was using a different compiler, one which chose to add inline
without the underscores. It's still an "extension" because it's not part of Standard C.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…