可以使用
#define MAX 100int main (int argc, char *argv[]){ printf("MAX is %d\n", MAX); return 0;}
gcc -E filename.c -o output.c
来
output.c:
# 1 "./def.c"# 1 ""# 1 " "# 1 "./def.c"intmain (int argc, char *argv[]){ printf("MAX is %d\n", 100); return 0;}