aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 3e76ae61..7a5ad21b 100644
--- a/debug.c
+++ b/debug.c
@@ -338,6 +338,13 @@ struct command_source
static struct command_source *cmd_src = NULL;
+#define PUSH_BINDING(stack, tag, val) \
+if (val++) \
+ memcpy((char *) (stack), (const char *) tag, sizeof(jmp_buf))
+#define POP_BINDING(stack, tag, val) \
+if (--val) \
+ memcpy((char *) tag, (const char *) (stack), sizeof(jmp_buf))
+
#define CHECK_PROG_RUNNING() \
do { \