aboutsummaryrefslogtreecommitdiffstats
path: root/method.h
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-29 11:42:53 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-29 11:42:53 +0000
commit3c65e0262b6b14b0a6dc901128df4c45bd547c2f (patch)
tree118775acce2347c7a45a29af979bb0c928be6d13 /method.h
parentbe41711465807d07521d5f71ffdfee18dcab33b5 (diff)
downloadruby-3c65e0262b6b14b0a6dc901128df4c45bd547c2f.tar.gz
* vm_eval.c (rb_call0): gets rid of checking method cache twice.
* method.h (rb_get_method_entry): added a prototype of the function. (rb_method_entry_without_cache): more friendly name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r--method.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/method.h b/method.h
index e6d4fab8b3..8090b6354f 100644
--- a/method.h
+++ b/method.h
@@ -78,6 +78,8 @@ void rb_add_method_cfunc(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc,
rb_method_entry_t *rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *option, rb_method_flag_t noex);
rb_method_entry_t *rb_add_method_me(VALUE klass, ID mid, const rb_method_entry_t *, rb_method_flag_t noex);
rb_method_entry_t *rb_method_entry(VALUE klass, ID id);
+rb_method_entry_t *rb_get_method_entry(VALUE klass, ID id);
+#define rb_method_entry_without_cache(klass, id) rb_get_method_entry((klass), (id))
int rb_method_entry_arity(const rb_method_entry_t *me);
void rb_gc_mark_method_entry(const rb_method_entry_t *me);
void rb_free_method_entry(rb_method_entry_t *me);