aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-03-05 20:20:21 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-03-05 20:20:21 +0200
commit7b77ec860377eafcad05025888721a46b8a7f349 (patch)
tree2d3176cee22ad946fb4b82e1b8ae40ca656d1a6a /debug.c
parent9b1151d32d047649e2a6a1f601aa8163ebe3e8e9 (diff)
parent28b143c3a489e2699834812214eeaa6347ac1c01 (diff)
downloadegawk-7b77ec860377eafcad05025888721a46b8a7f349.tar.gz
egawk-7b77ec860377eafcad05025888721a46b8a7f349.tar.bz2
egawk-7b77ec860377eafcad05025888721a46b8a7f349.zip
Merge branch 'gawk-4.2-stable' (after 4.2.1 release)
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 { \