aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-15 02:09:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-15 02:09:27 +0000
commitba3908ee33b30d63b5e80a800363bdbd1e02bfa1 (patch)
tree46dbee7a4fdfe609699e9b24f733b3041c8330c4 /vm_eval.c
parent02ec298ad01e65fcc0d6d8fa15e1bbb0e946b6b5 (diff)
downloadruby-ba3908ee33b30d63b5e80a800363bdbd1e02bfa1.tar.gz
ruby.h: check argc to rb_funcall
* include/ruby/ruby.h (rb_funcall): check if argc matches the number of variadic arguments, and replace with rb_funcallv. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_eval.c b/vm_eval.c
index d2a1d9754d..3ea0b8d921 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -804,6 +804,7 @@ rb_apply(VALUE recv, ID mid, VALUE args)
return rb_call(recv, mid, argc, argv, CALL_FCALL);
}
+#undef rb_funcall
/*!
* Calls a method
* \param recv receiver of the method