summaryrefslogtreecommitdiff
path: root/examples/debug.m4
diff options
context:
space:
mode:
Diffstat (limited to 'examples/debug.m4')
-rw-r--r--examples/debug.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/debug.m4 b/examples/debug.m4
new file mode 100644
index 0000000..16f4c74
--- /dev/null
+++ b/examples/debug.m4
@@ -0,0 +1,4 @@
+define(`countdown', `$1 ifelse(eval($1 > 0), 1, `countdown(decr($1))', `Liftoff')')
+debugmode(`aeqc')
+traceon(`countdown')
+countdown(2)