summaryrefslogtreecommitdiff
path: root/libguile/whippet/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/whippet/src/debug.h')
-rw-r--r--libguile/whippet/src/debug.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libguile/whippet/src/debug.h b/libguile/whippet/src/debug.h
new file mode 100644
index 000000000..7b161c556
--- /dev/null
+++ b/libguile/whippet/src/debug.h
@@ -0,0 +1,10 @@
+#ifndef DEBUG_H
+#define DEBUG_H
+
+#ifndef NDEBUG
+#define DEBUG(...) fprintf (stderr, "DEBUG: " __VA_ARGS__)
+#else
+#define DEBUG(...) do { } while (0)
+#endif
+
+#endif // DEBUG_H