We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3048bbb commit d3d322bCopy full SHA for d3d322b
ext/concurrent_ruby_ext/common.h
@@ -3,6 +3,8 @@
3
// https://github.com/ruby/ruby/blob/ruby_2_0_0/include/ruby/intern.h
4
// rb_check_arity was added in Ruby 2.0
5
6
+#define UNLIMITED_ARGUMENTS (-1)
7
+
8
#define rb_check_arity(argc, min, max) do { \
9
if (((argc) < (min)) || ((argc) > (max) && (max) != UNLIMITED_ARGUMENTS)) \
10
rb_error_arity(argc, min, max); \
0 commit comments