42 const void *arr_static,
43 const int sizeof_arr_p,
46 const char *alloc_str)
51 arr_tmp =
MEM_mallocN(sizeof_arr_p * ((num < arr_len) ? (arr_len * 2 + 2) : (arr_len + num)),
55 memcpy(arr_tmp, arr, sizeof_arr_p * arr_len);
57 if (arr != arr_static) {
void _bli_array_grow_func(void **arr_p, const void *arr_static, const int sizeof_arr_p, const int arr_len, const int num, const char *alloc_str)
A (mainly) macro array library.
Read Guarded memory(de)allocation.
void(* MEM_freeN)(void *vmemh)
void *(* MEM_mallocN)(size_t len, const char *str)