diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-05-02 07:31:34 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-05-02 07:31:34 -0700 |
commit | 1d496164aff177ba44d3dfaa50cbafd40000965e (patch) | |
tree | 5884b0ced944510d205e862fc9b0130293df5d44 /eval.c | |
parent | fc87cf9bfe6bb7a7449bc9619580ca0f717e1df0 (diff) | |
download | txr-1d496164aff177ba44d3dfaa50cbafd40000965e.tar.gz txr-1d496164aff177ba44d3dfaa50cbafd40000965e.tar.bz2 txr-1d496164aff177ba44d3dfaa50cbafd40000965e.zip |
interpreter: small code tidying in me_interp_macro.
* eval.c (me_interp_macro): Combine initialization and
assignment into one. There was previously code between the two
that got removed when the old debugger was scrubbed.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2034,8 +2034,7 @@ static val me_interp_macro(val expander, val form, val menv) val body = cddr(expander); val saved_de = set_dyn_env(make_env(nil, nil, dyn_env)); val exp_env = bind_macro_params(env, menv, params, arglist, nil, form); - val result; - result = eval_progn(body, exp_env, body); + val result = eval_progn(body, exp_env, body); set_dyn_env(saved_de); set_origin(result, form); return result; |