From ade35f39407f0fb1a1f54e974c2eade4b969532b Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 14 Jul 2024 23:28:21 +0100 Subject: [PATCH] Add list_set function --- include/list/typed_list.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/list/typed_list.h b/include/list/typed_list.h index eeabe52..6869515 100644 --- a/include/list/typed_list.h +++ b/include/list/typed_list.h @@ -50,6 +50,7 @@ } while (0) #define list_pop(LP) (LP->count -= 1) +#define list_set(LP, IDX, ITEM) LP->items[IDX] = ITEM #define list_get(LP, IDX) LP->items[IDX] #define list_merge(T, ARENA, DST, LP1, LP2) \