Is there an option that the GCC preprocessor could generate C source code and filter out irrelevant source code?
For example, a .c file has a #def
.c
#def
It sounds like you want unifdef, not the GCC preprocessor.