I inherited some code which contains far too many ...

Q

I inherited some code which contains far too many #ifdef's for my taste. How can I preprocess the code to leave only one conditional compilation set, without running it through the preprocessor and expanding all of the #include's and #define's as well?

✍: Guest

A

There are programs floating around called unifdef, rmifdef, and scpp (``selective C preprocessor'') which do exactly this

2016-01-29, 574👍, 0💬