diff --git a/include/tlibc/collections/List.h b/include/tlibc/collections/List.h index fff8134..2095920 100755 --- a/include/tlibc/collections/List.h +++ b/include/tlibc/collections/List.h @@ -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)