mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
make mrb_funcall_argv and mrb_funcall_with_block to take mrb_sym as a method name
This commit is contained in:
+2
-2
@@ -320,8 +320,8 @@ const_get(mrb_state *mrb, struct RClass *base, mrb_sym sym)
|
||||
return kh_value(h, k);
|
||||
}
|
||||
if (mrb_respond_to(mrb, mrb_obj_value(c), cm)) {
|
||||
mrb_value argv = mrb_symbol_value(sym);
|
||||
return mrb_funcall_argv(mrb, mrb_obj_value(c), "const_missing", 1, &argv);
|
||||
mrb_value name = mrb_symbol_value(sym);
|
||||
return mrb_funcall(mrb, mrb_obj_value(c), "const_missing", 1, name);
|
||||
}
|
||||
}
|
||||
c = c->super;
|
||||
|
||||
Reference in New Issue
Block a user