summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-06 06:38:08 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-06 06:38:08 (GMT)
commitceddb498682549c2904f9ffbeffb8ae7102e2d5f (patch)
tree37c5bf178da5201c97caf0ebbba9421bced68e2e /string.c
parent334710c155ad19cfd947ce6bcd7127b97cbe37da (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/string.c b/string.c
index 907b47c..50e5c90 100644
--- a/string.c
+++ b/string.c
@@ -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;