I'm doing some reverse engineering on some old code that is configured by a massive tangle of #ifs and #ifdefs. I'm currently looking at the various configurations by doing the substitutions in an editor. This is both tedious and (I suspect) error-prone.
Are there some gcc preprocessor options that will preprocess the #if[def]s but leave other preprocessor directives (e.g. #define) untouched? This is for reverse engineering purposes only; I don't need to compile or otherwise use the preprocessed code.