From 03482a9df01e86fff1434d53dfe63d842de87190 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 3 Nov 2019 21:52:10 +0100 Subject: [PATCH] :art: Func builtni flags --- src/parse/scan2.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.43.0