gcc, 用於debug的macro…極好用
#ifdef DEBUG_STRING
#define DPRINTSTR(args...) printf(##args)
#else
#define DPRINTSTR(args...)
#endif
C99之後開始支援不定變數巨集
Read Full Post | Make a Comment ( None so far )
#ifdef DEBUG_STRING
#define DPRINTSTR(args...) printf(##args)
#else
#define DPRINTSTR(args...)
#endif
C99之後開始支援不定變數巨集
Read Full Post | Make a Comment ( None so far )
Liked it here?
Why not try sites on the blogroll...