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 | 6c2696d8cc9c636c7fddcd9f4479d56e1f08e800 (patch) | |
tree | 5884b0ced944510d205e862fc9b0130293df5d44 | |
parent | f35bc2b622988028e0da6363adf25ed4fbffceea (diff) | |
download | txr-6c2696d8cc9c636c7fddcd9f4479d56e1f08e800.tar.gz txr-6c2696d8cc9c636c7fddcd9f4479d56e1f08e800.tar.bz2 txr-6c2696d8cc9c636c7fddcd9f4479d56e1f08e800.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.
-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; |