aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-08-18 10:02:06 +0200
committerThomas White <taw@physics.org>2015-08-18 10:02:06 +0200
commit6ad8d3167c90954970f4015379d93050e3ff8ae8 (patch)
treec0df05f2dce0b9e86a890ce215bb78652c59777a /src
parent77a7801797982035e6fccadfa070d79dd33d20e3 (diff)
Fix macro contents
Diffstat (limited to 'src')
-rw-r--r--src/sc_interp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c
index 10fb7ba..a4a1e84 100644
--- a/src/sc_interp.c
+++ b/src/sc_interp.c
@@ -878,9 +878,10 @@ static void exec_macro(SCBlock *bl, SCInterpreter *scin, SCBlock *child)
static void run_macro_contents(SCInterpreter *scin)
{
struct sc_state *st = &scin->state[scin->j];
+ SCBlock *contents = st->macro_contents;
sc_interp_save(scin);
- sc_interp_add_blocks(scin, st->macro_contents);
+ sc_interp_add_blocks(scin, contents);
sc_interp_restore(scin);
}