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

 

以下便是打印调试信息:

 

 

 

 

posted @ 2019-11-26 10:41  假如蜗牛有梦想  阅读(926)  评论(0编辑  收藏  举报