ADD_REF(v);
nspc_add_value(env->curr, f->def->base->xid, v);
} else {
- if(overload->d.func_ref) {
- f->next = overload->d.func_ref->next;
- overload->d.func_ref->next = f;
- } else
- overload->d.func_ref = f;
+ assert(overload->d.func_ref);
+ f->next = overload->d.func_ref->next;
+ overload->d.func_ref->next = f;
}
return v;
}
vector_init(&v);
do {
const Type t = nspc_lookup_type0(env->curr, id->xid);
- if(!t) {
- vector_release(&v);
- return NULL;
- }
vector_add(&v, (vtype)t);
tlen += strlen(t->name);
} while((id = id->next) && ++tlen);