unifdef

Unifdef is useful for removing #ifdef'ed lines from a file while otherwise leaving the file alone. You specify which symbols are defined or undefined with -D and -U flags, and unifdef removes the corresponding ifdefs, and the enclosed code if appropriate. It's especially useful for removing those "#ifdef BROKEN" and "#ifdef PRIVATE" clauses from code before you release it. Unifdef acts on #if, #ifdef, #ifndef, #elif, #else, and #en­dif lines, and it knows only enough about C and C++ to know when one of these is inactive because it is inside a comment or a single or double quote.
Current version: 2.6

History

Effective Date Table ID Version Download URL Project URL Version URL
2020-12-22 10 2.6 project version
2019-01-17 9 2.6 project version
2017-07-13 8 2.6 project version
2015-06-25 7 2.6 project version
2014-03-07 6 2.6 project version
2013-09-10 5 2.6 project version
2012-10-31 4 2.6 project version
2012-05-01 3 2.6 project version