From: fennecdjay Date: Sun, 3 Nov 2019 20:52:10 +0000 (+0100) Subject: :art: Func builtni flags X-Git-Tag: nightly~2116^2~16 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=03482a9df01e86fff1434d53dfe63d842de87190;p=gwion.git :art: Func builtni flags --- diff --git a/src/parse/scan2.c b/src/parse/scan2.c index a869082a..852a8e02 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -346,6 +346,7 @@ ANN2(1,2) static Value func_value(const Env env, const Func f, ANN static m_bool scan2_func_def_builtin(MemPool p, const Func func, const m_str name) { SET_FLAG(func, builtin); + SET_FLAG(func->value_ref, builtin); func->code = new_vm_code(p, NULL, func->def->stack_depth, func->flag, name); func->code->native_func = (m_uint)func->def->d.dl_func_ptr; return GW_OK;