Debug Print Macro in C?

前端 未结 0 337
误落风尘
误落风尘 2020-12-23 01:13

in C, what is the proper way to define a printf like macro that will print only when DEBUG symbol is defined?

#ifdef DEBUG
#define DEBUG_PRINT(???) ???
#else         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题