#include #include #include extern int willNotPrintDebugMsg; void XPRINTF(const char* fmt, ...) { if (willNotPrintDebugMsg > 0) return; va_list args; va_start(args, fmt); vfprintf(stderr, fmt, args); fflush(stderr); va_end(args); }