Printf format print

#define _DEBUG_

#ifdef _DEBUG_
#define  printm(fmt, ...) do { printf("%s line %d, "fmt, __func__, \
__LINE__, ##__VA_ARGS__); } while(0)
#else
#define printm(fmt, ...) do { } while(0)
#endif

Guess you like

Origin www.cnblogs.com/maxpak/p/11028330.html