This commit is contained in:
2025-11-25 23:14:26 +01:00
parent 0c81973aa2
commit cbedadd36e
3 changed files with 24 additions and 0 deletions

6
core.h
View File

@@ -175,6 +175,12 @@ DefineList(string, String);
}
#define ListTail(list, start) ListSlice(list, start, (list).length)
#define ListRemove(list, index)\
if ((index) >= 0 && (index) < (list)->length) {\
memcpy((list)->data + (index), (list)->data + (index) + 1, (parentNode->children.length - (i + 1))*sizeof(*((list)->data)));\
parentNode->children.length -= 1;\
}
// ### Strings ###
struct string {
char *str;