aboutsummaryrefslogtreecommitdiff
path: root/src/brussel.codegen.comp/CodegenConfig.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/brussel.codegen.comp/CodegenConfig.hpp')
-rw-r--r--src/brussel.codegen.comp/CodegenConfig.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/brussel.codegen.comp/CodegenConfig.hpp b/src/brussel.codegen.comp/CodegenConfig.hpp
new file mode 100644
index 0000000..b9dc56c
--- /dev/null
+++ b/src/brussel.codegen.comp/CodegenConfig.hpp
@@ -0,0 +1,11 @@
+#pragma once
+
+#ifndef CODEGEN_DEBUG_PRINT
+# define CODEGEN_DEBUG_PRINT 0
+#endif
+
+#if CODEGEN_DEBUG_PRINT
+# define DEBUG_PRINTF(...) printf(__VA_ARGS__)
+#else
+# define DEBUG_PRINTF(...)
+#endif