From 4d9f5482aea747e614a8d78b5e8ec114b023a768 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 28 Feb 2016 04:41:38 +0000 Subject: NoMethodError#private_call? * error.c (nometh_err_initialize): add private_call? parameter. * error.c (nometh_err_private_call_p): add private_call? method, to tell if the exception raised in private form FCALL or VCALL. [Feature #12043] * vm_eval.c (make_no_method_exception): append private_call? argument. * vm_insnhelper.c (ci_missing_reason): copy FCALL flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm_insnhelper.h') diff --git a/vm_insnhelper.h b/vm_insnhelper.h index f2a2a88c72..69eaaacf2e 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -185,8 +185,8 @@ enum vm_regan_acttype { #define GET_GLOBAL_CONSTANT_STATE() (ruby_vm_global_constant_state) #define INC_GLOBAL_CONSTANT_STATE() (++ruby_vm_global_constant_state) -static VALUE make_no_method_exception(VALUE exc, VALUE format, - VALUE obj, int argc, const VALUE *argv); +static VALUE make_no_method_exception(VALUE exc, VALUE format, VALUE obj, + int argc, const VALUE *argv, int priv); static inline struct vm_throw_data * THROW_DATA_NEW(VALUE val, rb_control_frame_t *cf, VALUE st) -- cgit v1.2.1