summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-14 21:10:16 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-14 21:10:16 +0000
commit35c356ea72094dbbf1397d8f5acd065bd23d1177 (patch)
treec83c5a6b70d44f461e021643990a53c0942dd3ee /include
parent74bdcfe81643866c5d72383f5b5b16d70123fdee (diff)
* vm_insnhelper.c: improve number of arguments error in case of
optional parameters (issue #6085) * include/ruby/intern.h: define UNLIMITED_ARGUMENTS * test/ruby/test_arity.rb: test for above git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 7c5d79d7b3..763472589b 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -43,6 +43,7 @@ extern "C" {
*/
#define ID_ALLOCATOR 1
+#define UNLIMITED_ARGUMENTS (-1)
/* array.c */
void rb_mem_clear(register VALUE*, register long);