Besonderhede van voorbeeld: -1093631030202936846

Metadata

Author: WikiMatrix

Data

English[en]
As with the __STDC__ macro for C90, __STDC_VERSION__ can be used to write code that will compile differently for C90 and C99 compilers, as in this example that ensures that inline is available in either case (by replacing it with static in C90 to avoid linker errors). #if __STDC_VERSION__ >= 199901L /* "inline" is a keyword */ #else # define inline static #endif Most C compilers provide support for at least some of the features introduced in C99.
Korean[ko]
C90에서의 __STDC__ 매크로처럼, __STDC_VERSION__은 C90과 C99간에 다르게 컴파일할 수 있는 코드를 작성하는데 사용할 수 있다. #if __STDC_VERSION__ >= 199901L /* "inline" is a keyword */ #else # define inline /* nothing */ #endif GCC 등의 C 컴파일러들은 이제 C99의 새로운 기능들을 대부분 지원한다.

History

Your action: