Mega Code Archive
Categories
/
C
/
Code Snippets
Ifdef preprocessor
#include
#define Lion int main(void) { #ifdef Lion printf("Lion is defined.\n"); #endif #undef Lion #ifdef Lion printf("This line is not compiled.\n"); #endif return 0; }