aboutsummaryrefslogtreecommitdiff
path: root/include/debug.inc
diff options
context:
space:
mode:
Diffstat (limited to 'include/debug.inc')
-rwxr-xr-xinclude/debug.inc27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/debug.inc b/include/debug.inc
new file mode 100755
index 0000000..58e7365
--- /dev/null
+++ b/include/debug.inc
@@ -0,0 +1,27 @@
+#ifndef INC_DEBUG
+#define INC_DEBUG ##
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+
+ Partial Emergence
+ by Richard Knight 2022
+
+ Installation submission for the International Csound Conference 2022
+
+ Debug
+ If $DEBUG_RUNTIME is set, then exit the performance after that number of seconds
+* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+
+#ifdef DEBUG_RUNTIME
+#define DEBUG ##
+
+instr debug_exit
+ prints "Debug caused exit\n"
+ exitnow
+endin
+schedule("debug_exit", $DEBUG_RUNTIME, 1)
+
+#end
+
+#end
+