From 97773a0db9bcbafa16afcd1461ed6eead7f192a8 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 5 Mar 2018 19:29:54 +0200 Subject: Minor cleanups (bool to int, move a macro). --- debug.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debug.c') 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 { \ -- cgit v1.2.3