diff options
author | Thomas White <taw@physics.org> | 2015-08-18 10:02:06 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-08-18 10:02:06 +0200 |
commit | 6ad8d3167c90954970f4015379d93050e3ff8ae8 (patch) | |
tree | c0df05f2dce0b9e86a890ce215bb78652c59777a | |
parent | 77a7801797982035e6fccadfa070d79dd33d20e3 (diff) |
Fix macro contents
-rw-r--r-- | src/sc_interp.c | 3 |
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); } |