Refactor array to avoid having to include external types
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
return NULL;
|
||||
}}
|
||||
|
||||
return &(array->items[index]);
|
||||
u8 *ptr = (u8 *)(array->items) + (array->item_size * index);
|
||||
return ({T} *)ptr;
|
||||
|
Reference in New Issue
Block a user