Refactor array to avoid having to include external types

This commit is contained in:
abdelrahman committed 2025-05-05 16:33:08 +01:00
1 parent 98a802e3eb
commit 4e3945d1d0
18 files changed
+841 -1035

No files matched your search

+4 -5
View File
@@ -1,5 +1,4 @@
if (!array || array->count == 0) {{
return ({T}){{0}};
}}
return array->items[--(array->count)];
u64 index = array->count - 1;
{T} *out = wapp_{Tlower}_array_get(array, index);
--(array->count);
return out;