2024-12-04 23:53:14 -08:00
|
|
|
#define array_init(type, allocator) array_init <type> (allocator )
|
|
|
|
#define array_init_reserve(type, allocator, cap) array_init_reserve <type> (allocator, cap)
|
|
|
|
#define array_append_array(array, other) array_append < get_array_underlying_type(array) > (& array, other )
|
|
|
|
#define array_append_value(array, value) array_append < get_array_underlying_type(array) > (& array, value )
|
|
|
|
#define array_append_items(array, items, item_num) array_append < get_array_underlying_type(array) > (& array, items, item_num )
|
|
|
|
#define array_append_at(array, item, idx ) array_append_at < get_array_underlying_type(array) > (& array, item, idx )
|
|
|
|
#define array_append_at_items(array, items, item_num, idx) array_append_at_items< get_array_underlying_type(array) > (& items, item_num, idx )
|
|
|
|
#define array_back(array) array_back < get_array_underlying_type(array) > (array )
|
|
|
|
#define array_clear(array) array_clear < get_array_underlying_type(array) > (array )
|
|
|
|
#define array_fill(array, begin, end, value) array_fill < get_array_underlying_type(array) > (array, begin, end, value )
|
|
|
|
#define array_free(array) array_free < get_array_underlying_type(array) > (& array )
|
|
|
|
#define arary_grow(array, min_capacity) arary_grow < get_array_underlying_type(array) > (& array, min_capacity)
|
|
|
|
#define array_num(array) array_num < get_array_underlying_type(array) > (array )
|
|
|
|
#define arary_pop(array) arary_pop < get_array_underlying_type(array) > (array )
|
|
|
|
#define arary_remove_at(array, idx) arary_remove_at < get_array_underlying_type(array) > (idx)
|
|
|
|
#define arary_reserve(array, new_capacity) arary_reserve < get_array_underlying_type(array) > (& array, new_capacity )
|
|
|
|
#define arary_resize(array, num) arary_resize < get_array_underlying_type(array) > (& array, num)
|
|
|
|
#define arary_set_capacity(new_capacity) arary_set_capacity < get_array_underlying_type(array) > (& array, new_capacity )
|
|
|
|
#define arary_get_header(array) arary_get_header < get_array_underlying_type(array) > (array )
|