I'm using gnu cpp for some tests and hope it preserves the #include macro and extends other user-defined macro meanwhile. Is it possible?
Here's a piece of code(foo.c):
#include <stdio.h>
#define NEWLINE(str) str "\n"
int main(){
puts(NEWLINE("foo"));
}
And I hope the result of cpp foo.c to be:
#include <stdio.h>
int main(){
puts("foo\n");
}
#include), but even that is not very sensible: you want to readMAP_FAILEDnot((void *) -1)in your source code....