update
This commit is contained in:
6
core.h
6
core.h
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user