不定长参数宏,printf默认打印文件名、函数名和行号
#include <stdio.h>
//#define PRTINT_LOG(fmt,args...) printf("in FILE:"__FILE__"->%s"",at [%d]"fmt,__FUNCTION__,__LINE__,##args);
#define PRTINT_LOG(fmt,args...) do{printf("FILE:[%s] --> [%s] --> LINE:[%d]:"fmt,__FILE__,__FUNCTION__,__LINE
原创
2020-12-08 10:22:35 ·
418 阅读 ·
0 评论