Compare commits
1 Commits
ec164dc4e9
...
225a48a8d9
| Author | SHA1 | Date | |
|---|---|---|---|
| 225a48a8d9 |
@@ -37,6 +37,6 @@ void List_push_size(List_* self, void* values, u32 size);
|
|||||||
bool List_removeAt_size(List_* self, u32 i, u32 remove_size);
|
bool List_removeAt_size(List_* self, u32 i, u32 remove_size);
|
||||||
|
|
||||||
#define List_len(SELF, T) (SELF.size / sizeof(T))
|
#define List_len(SELF, T) (SELF.size / sizeof(T))
|
||||||
#define List_index(SELF, T, I) ((T*)SELF.data)[I]
|
#define List_index(SELF, T, I) (((T*)SELF.data)[I])
|
||||||
|
|
||||||
#define List_castTo_Array(SELF) Array_construct_size(SELF.data, SELF.size)
|
#define List_castTo_Array(SELF) Array_construct_size(SELF.data, SELF.size)
|
||||||
|
|||||||
Reference in New Issue
Block a user