added macro List_castTo_Array

This commit is contained in:
Timerix 2025-11-09 18:05:44 +05:00
parent 2c8e6fc601
commit cf5fda7a1e

View File

@ -28,3 +28,4 @@ void List_push_size(List_* ptr, void* values, u32 size);
bool List_removeAt_size(List_* ptr, u32 i, u32 remove_size);
#define List_len(L, T) ((L)->size / sizeof(T))
#define List_castTo_Array(l) Array_construct_size(l.data, l.size)