 |
Blender V4.3
|
Go to the documentation of this file.
15#define BLI_LINKS_PREPEND(list, link) \
17 CHECK_TYPE_PAIR(list, link); \
18 (link)->next = list; \
24#define BLI_LINKS_APPEND(list, link) \
26 (link)->next = NULL; \
27 if ((list)->first) { \
28 (list)->last->next = link; \
31 (list)->first = link; \
33 (list)->last = link; \
38#define BLI_LINKS_INSERT_AFTER(list, node, link) \
40 if ((node)->next == NULL) { \
41 (list)->last = link; \
43 (link)->next = (node)->next; \
44 (node)->next = link; \
48#define BLI_LINKS_FREE(list) \
51 void *next = (list)->next; \