From 221217fd186385b8f0219c620244438a2e5745d4 Mon Sep 17 00:00:00 2001 From: Daniel Ledda Date: Fri, 14 Nov 2025 10:47:11 +0100 Subject: [PATCH] update --- core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core.h b/core.h index e0bf3f3..5a3cd41 100644 --- a/core.h +++ b/core.h @@ -151,6 +151,8 @@ DefineList(string, String); #define __ArrayAsList(array) { .data=(array), .length=ArrayCount(array), .capacity=ArrayCount(array) } #define AsList(listtype, ...) (listtype)__ArrayAsList(((listtype##_underlying[])__VA_ARGS__)) +// TODO(dledda): clone list +// TODO(dledda): list back element accessor #define AppendList(list, element) \ if ((list)->length < (list)->capacity) { \ (list)->data[(list)->length++] = (element); \