From 2eb53fb8a3045c3f3b5679a278158e6efecb8e98 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 13 Aug 2024 13:47:03 +0200 Subject: [PATCH] add PTK_LIST_CLEAR --- src/ptk_list.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ptk_list.h b/src/ptk_list.h index f637337..8efa9c8 100644 --- a/src/ptk_list.h +++ b/src/ptk_list.h @@ -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)