 |
Blender
V2.93
|
Go to the documentation of this file.
27 #define BLI_LINKS_PREPEND(list, link) \
29 CHECK_TYPE_PAIR(list, link); \
30 (link)->next = list; \
36 #define BLI_LINKS_APPEND(list, link) \
38 (link)->next = NULL; \
39 if ((list)->first) { \
40 (list)->last->next = link; \
43 (list)->first = link; \
45 (list)->last = link; \
50 #define BLI_LINKS_INSERT_AFTER(list, node, link) \
52 if ((node)->next == NULL) { \
53 (list)->last = link; \
55 (link)->next = (node)->next; \
56 (node)->next = link; \
60 #define BLI_LINKS_FREE(list) \
63 void *next = (list)->next; \