diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-25 02:24:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-25 02:24:33 +0000 |
commit | 8a4fb4acba170bae08b2d3c29f380b7a7983efd8 (patch) | |
tree | 18cbd90ec8ad338b847a659e65fc745b4b45f3ee /variable.c | |
parent | 165db57cdc91ba422448b1be228a9f70bff08f15 (diff) | |
download | ruby-8a4fb4acba170bae08b2d3c29f380b7a7983efd8.tar.gz |
eval.c: rb_frame_callee returns current name
* eval.c (rb_frame_callee): returns the called name of the current
frame, not the previous frame.
* eval.c (prev_frame_callee, prev_frame_func): rename and make static,
as these are used by rb_f_method_name() and rb_f_callee_name() only.
* variable.c (set_const_visibility): use the called name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c index 679dfac693..5f06a9d5ae 100644 --- a/variable.c +++ b/variable.c @@ -2231,7 +2231,7 @@ set_const_visibility(VALUE mod, int argc, VALUE *argv, rb_const_flag_t flag) if (argc == 0) { rb_warning("%"PRIsVALUE" with no argument is just ignored", - QUOTE_ID(rb_frame_this_func())); + QUOTE_ID(rb_frame_callee())); } for (i = 0; i < argc; i++) { |