printf定义宏方便调试


/**************************************************************************************
* Define debug message
**************************************************************************************/
//#define DEBUG_PRINTF
#ifndef DEBUG_PRINTF
    #define debug_printf(format,...)        printf("FILE: "__FILE__", LINE: %d: "format"/n", __LINE__, ##__VA_ARGS__)
#else
    #define debug_printf(format,...)
#endif

以下便是打印调试信息:

猜你喜欢

转载自www.cnblogs.com/ownDefine/p/11933857.html