summaryrefslogtreecommitdiffstats
path: root/eval_intern.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 01:43:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-22 01:43:59 +0000
commitfb1991448459be553b9140a80eb8c8c149b89464 (patch)
tree45adc1914ed6ec3198dbc48b7a7d91c57f531ac0 /eval_intern.h
parentd9f134e16fe95500ef072985c4e582c3d253122a (diff)
downloadruby-fb1991448459be553b9140a80eb8c8c149b89464.tar.gz
ruby-fb1991448459be553b9140a80eb8c8c149b89464.tar.xz
ruby-fb1991448459be553b9140a80eb8c8c149b89464.zip
* vm_eval.c (method_missing): should not pop cfp if missing method
is method_missing. [ruby-core:22298] * vm_eval.c (rb_raise_method_missing): new function to directly raise NoMethodError. * vm_insnhelper.c (vm_call_method): fixed the case method_missing is missing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval_intern.h b/eval_intern.h
index ac2999d3b..a9d29ff5f 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -195,6 +195,8 @@ NORETURN(void rb_fiber_start(void));
NORETURN(void rb_print_undef(VALUE, ID, int));
NORETURN(void rb_vm_localjump_error(const char *,VALUE, int));
NORETURN(void rb_vm_jump_tag_but_local_jump(int, VALUE));
+NORETURN(void rb_raise_method_missing(rb_thread_t *th, int argc, VALUE *argv,
+ VALUE obj, int call_status));
VALUE rb_vm_make_jump_tag_but_local_jump(int state, VALUE val);
NODE *rb_vm_cref(void);