From 8ebc1e27f7a19091515b8de742d486698dae4d6e Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 13 Jul 2024 22:16:10 +0200 Subject: omd --- src/util/debug.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/util/debug.h (limited to 'src/util/debug.h') 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 -- cgit v1.2.3-70-g09d2