123456789101112131415 |
- #include <windows.h>
- #include <io.h>
- #include <stdio.h>
- 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);
- }
|