BLI_linklist: add alloca append macro

This commit is contained in:
Campbell Barton 2015-12-07 19:13:30 +11:00
parent 41a2b97c30
commit 9e0757a367
1 changed files with 2 additions and 0 deletions

View File

@ -91,5 +91,7 @@ LinkNode *BLI_linklist_sort_r(LinkNode *list, int (*cmp)(void *, const void *, c
#define BLI_linklist_prepend_alloca(listp, ptr) \
BLI_linklist_prepend_nlink(listp, ptr, alloca(sizeof(LinkNode)))
#define BLI_linklist_append_alloca(list_pair, ptr) \
BLI_linklist_append_nlink(list_pair, ptr, alloca(sizeof(LinkNode)))
#endif /* __BLI_LINKLIST_H__ */