mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby.h: NULL as empty array
* include/ruby/ruby.h (rb_yield_values, rb_funcall): call with NULL when no arguments, for clang which defines static array when an empty array is used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d3c331510
commit
1ebd2b3702
1 changed files with 2 additions and 2 deletions
|
@ -2456,7 +2456,7 @@ __extension__({ \
|
|||
(int)(sizeof(rb_yield_values_args) / sizeof(VALUE)); \
|
||||
rb_yield_values2( \
|
||||
rb_varargs_argc_check(rb_yield_values_argc, rb_yield_values_nargs), \
|
||||
rb_yield_values_args); \
|
||||
rb_yield_values_nargs ? rb_yield_values_args : NULL); \
|
||||
})
|
||||
|
||||
# define rb_funcall(recv, mid, argc, ...) \
|
||||
|
@ -2467,7 +2467,7 @@ __extension__({ \
|
|||
(int)(sizeof(rb_funcall_args) / sizeof(VALUE)); \
|
||||
rb_funcallv(recv, mid, \
|
||||
rb_varargs_argc_check(rb_funcall_argc, rb_funcall_nargs), \
|
||||
rb_funcall_args); \
|
||||
rb_funcall_nargs ? rb_funcall_args : NULL); \
|
||||
})
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue