在看code时看到下面一段,对args...不太熟悉,所以记录一下
#define PRINT_DEBUG(fmt,args...) do{if(a>b){printf(fmt,##args);}}while(0)
args...其实代表可变参数的意思,参数可以是零个,例如在使用时,可以如一下方式:
PRINT_DEBUG("hello word\n");
PRINT_DEBUG("%s\n","hello word");
PRINT_DEBUG("%s %s\n","hello"," word");
...
...
...