mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
vm.c (send_method): should not use C++ keyword public
This commit is contained in:
@@ -865,7 +865,7 @@ vis_error(mrb_state *mrb, mrb_sym mid, mrb_value args, mrb_value recv, mrb_bool
|
||||
}
|
||||
|
||||
static mrb_value
|
||||
send_method(mrb_state *mrb, mrb_value self, mrb_bool public)
|
||||
send_method(mrb_state *mrb, mrb_value self, mrb_bool pub)
|
||||
{
|
||||
mrb_callinfo *ci = mrb->c->ci;
|
||||
int n = ci->n;
|
||||
@@ -901,7 +901,7 @@ send_method(mrb_state *mrb, mrb_value self, mrb_bool public)
|
||||
goto funcall;
|
||||
}
|
||||
|
||||
if (public) {
|
||||
if (pub) {
|
||||
mrb_bool priv = TRUE;
|
||||
if (m.flags & MRB_METHOD_PRIVATE_FL) {
|
||||
vis_err:;
|
||||
|
||||
Reference in New Issue
Block a user