ANN void emit_ext_ctor(const Emitter, const VM_Code);
ANN void emit_union_offset(Decl_List, const m_uint);
ANN2(1,2) m_bool emit_instantiate_object(const Emitter, const Type, const Array_Sub, const m_bool);
+ANN m_uint emit_code_offset(const Emitter emit);
+ANN m_uint emit_local(const Emitter emit, const m_uint size, const m_bool is_obj);
#endif
t->e->d.base_type = base;
v->owner = base->e->owner;
SET_FLAG(v, const | ae_flag_checked);
- map_set(&base->e->owner->info->value->map, sym, v);
+ map_set(&base->e->owner->info->value->map, (vtype)sym, (vtype)v);
return v;
}
ret->e->parent = t;
ret->name = s_name(sym);
SET_FLAG(ret, func);
- map_set(&t->e->owner->info->type->map, sym, ret);
+ map_set(&t->e->owner->info->type->map, (vtype)sym, (vtype)ret);
const Func_Def def = cpy_func_def(env->gwion->mp, t->e->d.func->def);
const Func func = ret->e->d.func = new_func(env->gwion->mp, s_name(sym), def);
const Value value = new_value(env->gwion->mp, ret, s_name(sym));
func->value_ref = value;
func->def->base->tmpl = mk_tmpl(env, t, t->e->d.func->def->base->tmpl, type->types);
def->base->func = func;
- map_set(&t->e->owner->info->value->map, sym, value); // to base ?
+ map_set(&t->e->owner->info->value->map, (vtype)sym, (vtype)value); // to base ?
return ret;
}
ERR_O(type->xid->pos,