7 #define NO_DEBUG_OUTPUT
10 /* Use this function to output messages when something unexpected
11 happens (which might be an indication of an error). *Don't* use it
12 when there's internal errors in the code - these should be handled
15 tgl_warning(const char *format
, ...)
17 #ifndef NO_DEBUG_OUTPUT
19 va_start(args
, format
);
20 fprintf(stderr
, "*WARNING* ");
21 vfprintf(stderr
, format
, args
);
23 #endif /* !NO_DEBUG_OUTPUT */
26 /* This function should be used for debug output only. */
28 tgl_trace(const char *format
, ...)
30 #ifndef NO_DEBUG_OUTPUT
32 va_start(args
, format
);
33 fprintf(stderr
, "*DEBUG* ");
34 vfprintf(stderr
, format
, args
);
36 #endif /* !NO_DEBUG_OUTPUT */
39 /* Use this function to output info about things in the code which
40 should be fixed (missing handling of special cases, important
41 features not implemented, known bugs/buglets, ...). */
43 tgl_fixme(const char *format
, ...)
45 #ifndef NO_DEBUG_OUTPUT
47 va_start(args
, format
);
48 fprintf(stderr
, "*FIXME* ");
49 vfprintf(stderr
, format
, args
);
51 #endif /* !NO_DEBUG_OUTPUT */