summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/debug.m
diff options
context:
space:
mode:
Diffstat (limited to 'Kod/bilbana/yc4/debug.m')
-rw-r--r--Kod/bilbana/yc4/debug.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/debug.m b/Kod/bilbana/yc4/debug.m
new file mode 100644
index 0000000..0295e02
--- /dev/null
+++ b/Kod/bilbana/yc4/debug.m
@@ -0,0 +1,6 @@
+function [] = debug(tag, strings)
+global log_debug;
+if log_debug
+ disp(strjoin({'DEBUG (', tag, '): ', strings}, ''))
+end
+end