summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-11-16 13:56:03 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-11-16 13:56:03 +0100
commit805496a04c69186e3a937cb2a3be97e220f7a582 (patch)
tree5ce05712d243867dbfa72b14457dffc24b408fa1 /Kod/bilbana
parentb20ed78c854a02b9ae10c3e2eafb903fe35d94a4 (diff)
downloadtfyy51-805496a04c69186e3a937cb2a3be97e220f7a582.tar.gz
Add debug-functions
Diffstat (limited to 'Kod/bilbana')
-rw-r--r--Kod/bilbana/yc4/debug.m6
-rw-r--r--Kod/bilbana/yc4/verbose.m6
2 files changed, 12 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
diff --git a/Kod/bilbana/yc4/verbose.m b/Kod/bilbana/yc4/verbose.m
new file mode 100644
index 0000000..d24a384
--- /dev/null
+++ b/Kod/bilbana/yc4/verbose.m
@@ -0,0 +1,6 @@
+function [] = verbose(tag, strings)
+global log_verbose;
+if log_verbose
+ disp(strjoin({'VERBOSE (', tag, '): ', strings}, ''))
+end
+end