24 #include "config_auto.h"
34 #define MAX_MSG_LEN 65536
42 const char *format, ...
46 static FILE *debugfp =
NULL;
51 va_start(args, format);
54 offset += _vsnprintf (msg + offset,
MAX_MSG_LEN - offset, format, args);
55 if (strcmp(
debug_file.string(),
"/dev/null") == 0)
59 offset += vsprintf (msg + offset, format, args);
65 }
else if (debugfp !=
NULL && strlen (
debug_file.string ()) == 0) {
70 fprintf(debugfp,
"%s", msg);
72 fprintf(stderr,
"%s", msg);
92 va_start(args, format);
93 vsprintf(msg, format, args);
96 #ifdef GRAPHICS_DISABLED
102 printf (
"%s\n", msg);
103 printf (
"Type \"c\" to cancel, anything else to continue: ");
110 STRING (msg) +
STRING (
"\nUse OK to continue, CANCEL to stop pausing");
112 return::MessageBox (
NULL, msg,
"IMGAPP",
113 MB_APPLMODAL | MB_OKCANCEL) == IDOK;