aboutsummaryrefslogtreecommitdiff
path: root/source/CodegenCompiler/CodegenConfig.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/CodegenCompiler/CodegenConfig.hpp')
-rw-r--r--source/CodegenCompiler/CodegenConfig.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/CodegenCompiler/CodegenConfig.hpp b/source/CodegenCompiler/CodegenConfig.hpp
new file mode 100644
index 0000000..b9dc56c
--- /dev/null
+++ b/source/CodegenCompiler/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