add PTK_LIST_CLEAR

This commit is contained in:
jacekpoz 2024-08-13 13:47:03 +02:00
parent a63f65067d
commit 2eb53fb8a3
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -43,6 +43,9 @@ bool _remove_at_PtkList(void *data, uint32_t *size, size_t index, size_t element
.allocated = _size,\
}
#define PTK_LIST_CLEAR(list) \
list.size = 0
#define PTK_LIST_FREE(list) \
free(list.data)