The #ifdef directive is used to check if a pre-processor symbol is defined. The standard (C11 6.4.2 Identifiers) mandates that identifiers must not start with a digit.
ex.
#ifdef 123_SUPPORT -> /* error!!! */
.
.
.
#endif
正確的:
#ifdef TEST_123_SUPPORT -> /* ok!!!! */
.
.
.
#endif
Reference:
沒有留言:
張貼留言