diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-09 01:29:24 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-09 01:29:24 +0000 |
| commit | 66275ebe7cd7a9872daabb67e19255f4e1e7b163 (patch) | |
| tree | 5f4c1ef570f4afc4aaa19961cab944695bc4c39f /eval.c | |
| parent | e257a80b05fd2620b304764af51f5ed58ad8f03e (diff) | |
| download | ruby-66275ebe7cd7a9872daabb67e19255f4e1e7b163.tar.gz ruby-66275ebe7cd7a9872daabb67e19255f4e1e7b163.tar.xz ruby-66275ebe7cd7a9872daabb67e19255f4e1e7b163.zip | |
* eval.c (rb_invoke_method): check if invoked in function style.
[ruby-core:13245]
* insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): stores and returns VM
calling flags.
* vm.c (rb_vm_cfunc_funcall_p): returns if the current method is
invoked in function style.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1507,11 +1507,11 @@ rb_f_send(int argc, VALUE *argv, VALUE recv) VALUE rb_invoke_method(int argc, VALUE *argv, VALUE recv) { + int rb_vm_cfunc_funcall_p(rb_control_frame_t *); int scope = NOEX_PUBLIC; rb_thread_t *th = GET_THREAD(); - rb_control_frame_t *cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->cfp); - if (SPECIAL_CONST_P(cfp->sp[0])) { + if (rb_vm_cfunc_funcall_p(th->cfp)) { scope = NOEX_NOSUPER | NOEX_PRIVATE; } |
