print.c 284 B

123456789101112131415
  1. #include <windows.h>
  2. #include <io.h>
  3. #include <stdio.h>
  4. extern int willNotPrintDebugMsg;
  5. void XPRINTF(const char* fmt, ...) {
  6. if (willNotPrintDebugMsg > 0) return;
  7. va_list args;
  8. va_start(args, fmt);
  9. vfprintf(stderr, fmt, args);
  10. fflush(stderr);
  11. va_end(args);
  12. }