From cf5fda7a1eb7a9ca59b1ed45b4940939ef8f9cce Mon Sep 17 00:00:00 2001 From: Timerix Date: Sun, 9 Nov 2025 18:05:44 +0500 Subject: [PATCH] added macro List_castTo_Array --- include/tlibc/collections/List.h | 1 + 1 file changed, 1 insertion(+) 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)