add PTK_LIST_CLEAR
This commit is contained in:
parent
a63f65067d
commit
2eb53fb8a3
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ bool _remove_at_PtkList(void *data, uint32_t *size, size_t index, size_t element
|
||||||
.allocated = _size,\
|
.allocated = _size,\
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define PTK_LIST_CLEAR(list) \
|
||||||
|
list.size = 0
|
||||||
|
|
||||||
#define PTK_LIST_FREE(list) \
|
#define PTK_LIST_FREE(list) \
|
||||||
free(list.data)
|
free(list.data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue