From de870875f773f5a680b12e5306bc316d35465fe5 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 16 Nov 2014 10:38:15 +0000 Subject: vm_eval.c: rb_current_receiver * vm_eval.c (rb_current_receiver): new function to return the receiver in the current control frame. [Feature #10195] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 18183f787c..5b3ca8c0a8 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1474,6 +1474,7 @@ VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE*); VALUE rb_funcall_with_block(VALUE, ID, int, const VALUE*, VALUE); int rb_scan_args(int, const VALUE*, const char*, ...); VALUE rb_call_super(int, const VALUE*); +VALUE rb_current_receiver(void); /* rb_scan_args() format allows ':' for optional hash */ #define HAVE_RB_SCAN_ARGS_OPTIONAL_HASH 1 -- cgit v1.2.3