Run preprocessor only but with only for certain statements

前端 未结 5 1098
-上瘾入骨i
-上瘾入骨i 2020-12-29 07:49

I have a number of debug statements defined in a program, and I want to be able to make a copy of the source without these statements.

In order to do this I first lo

5条回答
  •  再見小時候
    2020-12-29 08:47

    One may use tools like unifdef, unifdefall — remove preprocessor conditionals from code. (Run a "light" preprocessor for GCC)

提交回复
热议问题