diff options
author | Richard <richard@1bpm.net> | 2022-10-04 00:17:55 +0100 |
---|---|---|
committer | Richard <richard@1bpm.net> | 2022-10-04 00:17:55 +0100 |
commit | decb2dc0e9f1167d5cd8fb4d455305be6b9fdfbe (patch) | |
tree | 9a9a586bbb6268e52290c017ec95d3f672822980 /include/debug.inc | |
download | csd-partialemergence-decb2dc0e9f1167d5cd8fb4d455305be6b9fdfbe.tar.gz csd-partialemergence-decb2dc0e9f1167d5cd8fb4d455305be6b9fdfbe.tar.bz2 csd-partialemergence-decb2dc0e9f1167d5cd8fb4d455305be6b9fdfbe.zip |
initial
Diffstat (limited to 'include/debug.inc')
-rwxr-xr-x | include/debug.inc | 27 |
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
+
|