From 9b79ade8e8f0f2d5c66a0d8a8a2f9b966f53282b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 7 Dec 2022 14:39:40 +0100 Subject: [PATCH] :art: update envset_pushv --- include/closure.h | 4 ++++ include/env/envset.h | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 include/closure.h diff --git a/include/closure.h b/include/closure.h new file mode 100644 index 00000000..9389151d --- /dev/null +++ b/include/closure.h @@ -0,0 +1,4 @@ +#ifndef __GWION_CLOSURE +#define __GWION_CLOSURE +ANN m_bool tmpl_fptr(const Env env, const Fptr_Def fptr, const Func_Def fdef); +#endif diff --git a/include/env/envset.h b/include/env/envset.h index ab754b21..dc6db789 100644 --- a/include/env/envset.h +++ b/include/env/envset.h @@ -16,11 +16,9 @@ struct EnvSet { ANN m_bool envset_run(struct EnvSet *, const Type); ANN2(1, 3) m_bool envset_push(struct EnvSet *, const Type, const Nspc); ANN static inline m_bool envset_pushv(struct EnvSet *es, const Value v) { -// es->_ctx = es->env->context; -// es->_filename = es->env->name; + es->_ctx = es->env->context; + es->_filename = es->env->name; CHECK_BB(envset_push(es, v->from->owner_class, v->from->owner)); -// es->env->context = v->from->ctx; -// es->env->name = v->from->filename; return GW_OK; } ANN2(1) void envset_pop(struct EnvSet *, const Type); -- 2.43.0