mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove unneeded rb_darray_append_impl
This commit is contained in:
parent
37712c1ed6
commit
6bf519ba81
Notes:
git
2024-09-06 13:57:18 +00:00
1 changed files with 1 additions and 4 deletions
5
darray.h
5
darray.h
|
@ -43,10 +43,7 @@
|
|||
*
|
||||
* void rb_darray_append(rb_darray(T) *ptr_to_ary, T element);
|
||||
*/
|
||||
#define rb_darray_append(ptr_to_ary, element) \
|
||||
rb_darray_append_impl(ptr_to_ary, element)
|
||||
|
||||
#define rb_darray_append_impl(ptr_to_ary, element) do { \
|
||||
#define rb_darray_append(ptr_to_ary, element) do { \
|
||||
rb_darray_ensure_space((ptr_to_ary), \
|
||||
sizeof(**(ptr_to_ary)), \
|
||||
sizeof((*(ptr_to_ary))->data[0])); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue