Printf宏定义日志

xingyun86 1月前 85

Printf宏定义日志

#if (defined(DEBUG) || defined(_DEBUG))
#define DEBUG_PRINT(format,...) printf("File: " __FILE__ ", Line: %05d: " format "/n", __LINE__, ##__VA_ARGS__)  
#else
#define DEBUG_PRINT(format,...)
#endif


×
打赏作者
最新回复 (0)
只看楼主
全部楼主
返回