for(m_uint i = 0 ; i <= f->value_ref->offset; ++i) {
const Symbol sym = func_symbol(emit->env, f->value_ref->owner->name,
name, tmpl_name, i);
- const Func base = nspc_lookup_func1(f->value_ref->owner, sym);
+ const Func base = nspc_lookup_func0(f->value_ref->owner, sym);
if(base) {
free_mstr(emit->gwion->mp, tmpl_name);
assert(base->code);
char str[instr->m_val2 + strlen(t->name) + 1];
strcpy(str, name);
strcpy(str + instr->m_val2, t->name);
- const Func f = nspc_lookup_func1(t->nspc, insert_symbol(emit->env->gwion->st, str));
+ const Func f = nspc_lookup_func0(t->nspc, insert_symbol(emit->env->gwion->st, str));
if(f) {
*(VM_Code*)shred->reg = f->code;
shred->reg += SZ_INT;
char c[len + elen + 1];
memcpy(c, f->name, len);
strcpy(c + len, env->class_def->name);
- return nspc_lookup_func1(env->class_def->nspc, insert_symbol(env->gwion->st, c));
+ return nspc_lookup_func0(env->class_def->nspc, insert_symbol(env->gwion->st, c));
}
return f;
}
const m_str name = f->base->func ? f->base->func->name : func_tmpl_name(env, f);
if(!name)
return(m_str)GW_ERROR;
- const Func func = nspc_lookup_func1(env->curr, insert_symbol(name));
+ const Func func = nspc_lookup_func0(env->curr, insert_symbol(name));
if(func) {
f->base->ret_type = known_type(env, f->base->td);
return (m_str)(m_uint)((f->base->args && f->base->args->type) ? scan2_args(env, f) : GW_OK);