G
glen herrmannsfeldt
error: "or" cannot be used as a macro name as it is an operator in C++
In C, the preprocessor does what its name says, and occurs before
the compiler sees tokens and reserved words.
Is that not true in C++?
extern "C" {
#include <stdio.h>
#define or "hi there!\n"
int main() {
printf( or );
}
}
In C, the preprocessor does what its name says, and occurs before
the compiler sees tokens and reserved words.
Is that not true in C++?
extern "C" {
#include <stdio.h>
#define or "hi there!\n"
int main() {
printf( or );
}
}