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
5
darray.h
5
darray.h
@ -43,10 +43,7 @@
|
|||||||
*
|
*
|
||||||
* void rb_darray_append(rb_darray(T) *ptr_to_ary, T element);
|
* void rb_darray_append(rb_darray(T) *ptr_to_ary, T element);
|
||||||
*/
|
*/
|
||||||
#define rb_darray_append(ptr_to_ary, element) \
|
#define rb_darray_append(ptr_to_ary, element) do { \
|
||||||
rb_darray_append_impl(ptr_to_ary, element)
|
|
||||||
|
|
||||||
#define rb_darray_append_impl(ptr_to_ary, element) do { \
|
|
||||||
rb_darray_ensure_space((ptr_to_ary), \
|
rb_darray_ensure_space((ptr_to_ary), \
|
||||||
sizeof(**(ptr_to_ary)), \
|
sizeof(**(ptr_to_ary)), \
|
||||||
sizeof((*(ptr_to_ary))->data[0])); \
|
sizeof((*(ptr_to_ary))->data[0])); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user