Refactor array to avoid having to include external types
This commit is contained in:
1 parent
98a802e3eb
commit
4e3945d1d0
18 files changed
+841
-1035
No files matched your search
@@ -1,5 +1,6 @@
|
||||
if (!array || index >= array->count) {{
|
||||
{T} *ptr = wapp_{Tlower}_array_get(array, index);
|
||||
if (!ptr) {{
|
||||
return;
|
||||
}}
|
||||
|
||||
array->items[index] = item;
|
||||
memcpy((void *)ptr, (void *)item, array->item_size);
|
||||
Reference in new issue
Block a user