summaryrefslogtreecommitdiff
path: root/src/util/debug.h
diff options
context:
space:
mode:
authorTom Smeding <t.j.smeding@uu.nl>2024-07-13 22:16:10 +0200
committerTom Smeding <t.j.smeding@uu.nl>2024-07-13 22:16:14 +0200
commit8ebc1e27f7a19091515b8de742d486698dae4d6e (patch)
tree18051f4744d689f8f98587af661cfd39fd87c226 /src/util/debug.h
parent712530e52091520f8f2bf347dc9ecb4030d9c4ed (diff)
omd
Diffstat (limited to 'src/util/debug.h')
-rw-r--r--src/util/debug.h11
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