diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-26 03:34:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-26 03:34:25 +0400 |
commit | 1014dbaea17d4f0cb8163bfc116e5e77ab044ef1 (patch) | |
tree | 1b63d78a87c4b3c05bd1e7c9b6950a46a25e45be /source/blender/blenlib | |
parent | 4c664632189fd81f39d7f794a3911c7ecdc9c938 (diff) |
bmesh: replace BLI_array reallocs with alloca, also don't check all faces for connecting verts.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index a51dcfe197c..2b86569024f 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -293,8 +293,9 @@ typedef bool _BLI_Bool; /* simple stack */ #define STACK_DECLARE(stack) unsigned int _##stack##_index #define STACK_INIT(stack) ((void)stack, (void)((_##stack##_index) = 0)) -#define STACK_SIZE(stack) ((void)stack, (void)(_##stack##_index)) +#define STACK_SIZE(stack) ((void)stack, (_##stack##_index)) #define STACK_PUSH(stack, val) (void)((stack)[(_##stack##_index)++] = val) +#define STACK_PUSH_RET(stack) ((void)stack, ((stack)[(_##stack##_index)++])) #define STACK_POP(stack) ((_##stack##_index) ? ((stack)[--(_##stack##_index)]) : NULL) #define STACK_FREE(stack) ((void)stack) |