/* * Preprocessor compare with left part defined to empty. */ #include #define FOO 123 #define BAR int main(int argc, char *argv[]) { #if defined(FOO) && defined(BAR) && (BAR == FOO) printf("FOO == BAR\n"); #else printf("FOO != BAR\n"); #endif return 0; }