#include <stdio.h>
#define SOME_MACRO
int main()
{
#ifndef SOME_MACRO
printf("Will not compiled\n");
#endif
#ifndef NO_MACRO
printf("This one will be printed\n");
#endif
#ifndef NEW_MACRO
#define NEW_MACRO
printf("Macro defined\n");
#endif
return 0;
}
Posted inC Programming