summaryrefslogtreecommitdiff
path: root/dbgmsg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dbgmsg.cc')
-rw-r--r--dbgmsg.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbgmsg.cc b/dbgmsg.cc
new file mode 100644
index 0000000..f09ebf7
--- /dev/null
+++ b/dbgmsg.cc
@@ -0,0 +1,6 @@
+# include <luma/main.hh>
+void luma::dbgmsg(char const * msg) {
+ if constexpr(debug) {
+ luma::msgerr(msg);
+ }
+}