Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-07 11:13:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-07 11:13:30 +0300
commit9e0757a3671d15ec8b50aad404d3b5c38e549577 (patch)
tree5d7ee69683ea6286e72a912b74da2537c5ec5c78 /source/blender/blenlib/BLI_linklist.h
parent41a2b97c30ecf3c0d67303b7a27419bf31bf5e4f (diff)
BLI_linklist: add alloca append macro
Diffstat (limited to 'source/blender/blenlib/BLI_linklist.h')
-rw-r--r--source/blender/blenlib/BLI_linklist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_linklist.h b/source/blender/blenlib/BLI_linklist.h
index 00d757bdf9d..367f1bb9de5 100644
--- a/source/blender/blenlib/BLI_linklist.h
+++ b/source/blender/blenlib/BLI_linklist.h
@@ -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__ */