use more lightweight mrb_funcall_argv instead of mrb_funcall_id

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-06-11 23:21:49 +09:00
parent 39a29a7de1
commit 89f7bb1056
12 changed files with 20 additions and 20 deletions
+1 -2
View File
@@ -769,7 +769,6 @@ const_get(mrb_state *mrb, struct RClass *base, mrb_sym sym, mrb_bool skip)
struct RClass *c = base;
mrb_value v;
mrb_bool retry = FALSE;
mrb_value name;
/* if skip then skip the current class (already searched) */
if (skip) c = c->super;
@@ -786,7 +785,7 @@ L_RETRY:
retry = TRUE;
goto L_RETRY;
}
name = mrb_symbol_value(sym);
mrb_value name = mrb_symbol_value(sym);
return mrb_funcall_argv(mrb, mrb_obj_value(base), MRB_SYM(const_missing), 1, &name);
}