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.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Kod/bilbana/yc4/debug.m b/Kod/bilbana/yc4/debug.m
index 12acbf4..0295e02 100644
--- a/Kod/bilbana/yc4/debug.m
+++ b/Kod/bilbana/yc4/debug.m
@@ -1,3 +1,6 @@
function [] = debug(tag, strings)
-disp(strjoin({'DEBUG (', tag, '): ', strings}, ''))
+global log_debug;
+if log_debug
+ disp(strjoin({'DEBUG (', tag, '): ', strings}, ''))
+end
end