From 0fe46ceae30eedb2d87f9e62992bf8803c9a4fa5 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 23 Dec 2012 06:05:50 +0000 Subject: marshal.c: rb_check_funcall_with_hook * vm_eval.c (rb_check_funcall_with_hook): rb_check_funcall with hook which is called before calling method_missing or target method. * marshal.c (w_object, r_object0): use rb_check_funcall_with_hook instead of respond_to? and call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 2c407d52c5..2f05f48595 100644 --- a/internal.h +++ b/internal.h @@ -312,6 +312,9 @@ void rb_vm_bugreport(void); void Init_vm_eval(void); VALUE rb_current_realfilepath(void); VALUE rb_check_block_call(VALUE, ID, int, VALUE *, VALUE (*)(ANYARGS), VALUE); +typedef void rb_check_funcall_hook(int, VALUE, ID, int, VALUE *, VALUE); +VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, VALUE *argv, + rb_check_funcall_hook *hook, VALUE arg); /* vm_method.c */ void Init_eval_method(void); -- cgit v1.2.3