 |
Blender
V3.3
|
Go to the documentation of this file.
13 #define BLI_LINKS_PREPEND(list, link) \
15 CHECK_TYPE_PAIR(list, link); \
16 (link)->next = list; \
22 #define BLI_LINKS_APPEND(list, link) \
24 (link)->next = NULL; \
25 if ((list)->first) { \
26 (list)->last->next = link; \
29 (list)->first = link; \
31 (list)->last = link; \
36 #define BLI_LINKS_INSERT_AFTER(list, node, link) \
38 if ((node)->next == NULL) { \
39 (list)->last = link; \
41 (link)->next = (node)->next; \
42 (node)->next = link; \
46 #define BLI_LINKS_FREE(list) \
49 void *next = (list)->next; \