#ifndif
__PRINT
#define __PRINT(fmt,arg...) \
do \
{ \
char buf[1024]; \
snprintf(buf,1024,fmt,##arg); \
printf("%s\n",buf);\
}while(0);
#endif
#ifndef DEBUG
#define DEBUG(fmt,##arg) __PRINT(fmt,##arg)
#else
#define DEBUG(fmt,##arg)
#endif
转载请注明原文地址: https://ju.6miu.com/read-17744.html