diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-19 14:09:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-19 14:09:20 +0000 |
commit | 0fb2cd458b13576c837ed10b94eb8bb296e85118 (patch) | |
tree | ff42ba330d15a0808e98f7fb1fecac8d673c613a /vm_method.c | |
parent | 97d71ce8f0802ef20dae819f3012828381b408f5 (diff) |
class.c: add callback argument
* class.c (rb_class_foreach_subclass): add argument for callback
function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c index eab12f024e..b2cff6f13d 100644 --- a/vm_method.c +++ b/vm_method.c @@ -61,10 +61,10 @@ static struct { /* int ruby_running = 0; */ static void -rb_class_clear_method_cache(VALUE klass) +rb_class_clear_method_cache(VALUE klass, VALUE arg) { RCLASS_SERIAL(klass) = rb_next_class_serial(); - rb_class_foreach_subclass(klass, rb_class_clear_method_cache); + rb_class_foreach_subclass(klass, rb_class_clear_method_cache, arg); } void @@ -95,7 +95,7 @@ rb_clear_method_cache_by_class(VALUE klass) INC_GLOBAL_METHOD_STATE(); } else { - rb_class_clear_method_cache(klass); + rb_class_clear_method_cache(klass, Qnil); } } } |