diff options
Diffstat (limited to 'src/util/debug.h')
-rw-r--r-- | src/util/debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util/debug.h b/src/util/debug.h new file mode 100644 index 0000000..9ee7c5f --- /dev/null +++ b/src/util/debug.h @@ -0,0 +1,11 @@ +#pragma once + + +// Uncomment this to enable DEBUG() statements. +// #define ENABLE_DEBUG + +#ifdef ENABLE_DEBUG +#define DEBUG(...) fprintf(stderr, ">> " __VA_ARGS__) +#else +#define DEBUG(...) +#endif |