GCC preprocessor [duplicate]

Use gcc -E to only run the preprocessor part, e.g. give a file in.c #if 0 0; #endif #if 1 1; #endif running $ gcc -E in.c -o in.i yields a file in.i # 1 “in.cpp” # 1 “<built-in>” # 1 “<command-line>” # 1 “in.cpp” 1; i.e. the parts behind the #if 0 got removed. … Read more