mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_method.c: change argument of set_visibility
* vm_method.c (set_visibility): use rb_method_flag_t as well as set_method_visibility() and rename argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7708560bb1
commit
64ed7df543
1 changed files with 3 additions and 3 deletions
|
@ -1291,14 +1291,14 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
set_visibility(int argc, VALUE *argv, VALUE module, int visi)
|
set_visibility(int argc, VALUE *argv, VALUE module, rb_method_flag_t ex)
|
||||||
{
|
{
|
||||||
secure_visibility(module);
|
secure_visibility(module);
|
||||||
if (argc == 0) {
|
if (argc == 0) {
|
||||||
SCOPE_SET(visi);
|
SCOPE_SET(ex);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
set_method_visibility(module, argc, argv, visi);
|
set_method_visibility(module, argc, argv, ex);
|
||||||
}
|
}
|
||||||
return module;
|
return module;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue