diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-06 06:38:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-06 06:38:08 +0000 |
commit | ceddb498682549c2904f9ffbeffb8ae7102e2d5f (patch) | |
tree | 37c5bf178da5201c97caf0ebbba9421bced68e2e /string.c | |
parent | 334710c155ad19cfd947ce6bcd7127b97cbe37da (diff) |
vm_args.c: wrap symbol ifunc
* vm_args.c (args_setup_block_parameter): wrap a symbol in ifunc
by a proc as a block parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8946,6 +8946,7 @@ rb_sym_proc_call(VALUE args, VALUE sym, int argc, const VALUE *argv, VALUE passe return rb_funcall_with_block(obj, (ID)sym, argc - 1, argv + 1, passed_proc); } +#define sym_to_proc rb_sym_to_proc /* * call-seq: * sym.to_proc @@ -8955,7 +8956,7 @@ rb_sym_proc_call(VALUE args, VALUE sym, int argc, const VALUE *argv, VALUE passe * (1..3).collect(&:to_s) #=> ["1", "2", "3"] */ -static VALUE +VALUE sym_to_proc(VALUE sym) { static VALUE sym_proc_cache = Qfalse; |