I inherited some code which contains far too many ...
C Interview Questions and Answers
(Continued from previous question...)
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?
A: There are programs floating around called unifdef, rmifdef, and scpp (``selective C preprocessor'') which do exactly this
(Continued on next question...)
Other Interview Questions
|