初级会员

- 积分
- 57
- 金钱
- 57
- 注册时间
- 2017-2-13
- 在线时间
- 7 小时
|
#define SRAM_DEBUG_ON 1
#define SRAM_INFO(fmt,arg...) printf("<<-SRAM-INFO->> "fmt"\n",##arg)
#define SRAM_ERROR(fmt,arg...) printf("<<-SRAM-ERROR->> "fmt"\n",##arg)
#define SRAM_DEBUG(fmt,arg...) do{\
if(SRAM_DEBUG_ON)\
printf("<<-SRAM-DEBUG->> [%d]"fmt"\n",__LINE__, ##arg);\
}while(0)
以上程序中fmt和arg代表什么?
printf函数中SRAM-INFO为什么加这种符号,fmt为什么引起来,argue为什么前面加##?
这个语句printf("<<-SRAM-DEBUG->> [%d]"fmt"\n",__LINE__, ##arg)中 [%d]和__LINE__什么意思?
|
|