return GW_OK;
}
-ANN2(1,2) static inline m_bool class_parent(const Env env, Type t) {
- do {
- if(tflag(t, tflag_check))
- break;
- if(t->info->cdef)
- CHECK_BB(traverse_class_def(env, t->info->cdef))
- } while((t = t->info->parent));
- return GW_OK;
-}
-
ANN2(1,2) static void import_class_ini(const Env env, const Type t) {
t->nspc = new_nspc(env->gwion->mp, t->name);
t->nspc->parent = env->curr;
const Type l = bin->lhs->info->type;
const Type r = bin->rhs->info->type;
- const uint is_new = bin->lhs->exp_type == ae_exp_unary && bin->lhs->d.exp_unary.op == insert_symbol(emit->gwion->st, "new");
if(bin->lhs->exp_type == ae_exp_unary && bin->lhs->d.exp_unary.op == insert_symbol(emit->gwion->st, "new")) {
for(m_uint i = vector_size(&emit->code->instr); --i;) {
const Instr instr = (Instr)vector_at(&emit->code->instr, i - 1);
- if(instr->opcode == GcAdd) {
+ if(instr->opcode == (m_uint)GcAdd) {
vector_rem(&emit->code->instr, i - 1);
mp_free(emit->gwion->mp, Instr, instr);
}