1 2 3 4 5 6 7 8 9 10 11 12
#ifndef __DEBUG_H__ #define __DEBUG_H__ #undef DEBUG #ifdef DEBUG #define DPRINTF(fmt, args...) printf(fmt, ## args) #else #define DPRINTF(fmt, ...) #endif #endif