diff options
Diffstat (limited to 'include/chilldebug.h')
-rw-r--r-- | include/chilldebug.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/chilldebug.h b/include/chilldebug.h new file mode 100644 index 0000000..865f1f6 --- /dev/null +++ b/include/chilldebug.h @@ -0,0 +1,15 @@ + +// a central place to turn on debugging messages + +// enable the next line to get lots of output +//#define DEBUGCHILL +#ifndef DEBUGCHILL_H +#define DEBUGCHILL_H + +#ifdef DEBUGCHILL +#define DEBUG_PRINT(args...) fprintf(stderr, args ) +#else +#define DEBUG_PRINT(args...) do {} while(0) /* Don't do anything */ +#endif + +#endif |