summaryrefslogtreecommitdiffhomepage
path: root/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debug.cpp')
-rw-r--r--debug.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/debug.cpp b/debug.cpp
new file mode 100644
index 0000000..391c522
--- /dev/null
+++ b/debug.cpp
@@ -0,0 +1,12 @@
+#include "debug.h"
+
+#include <iostream>
+
+bool debug{false};
+
+void Debug(std::string s)
+{
+ if (debug)
+ std::cout << s << std::endl;
+}
+