From 1014dbaea17d4f0cb8163bfc116e5e77ab044ef1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 25 May 2013 23:34:25 +0000 Subject: bmesh: replace BLI_array reallocs with alloca, also don't check all faces for connecting verts. --- source/blender/blenlib/BLI_utildefines.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib') 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) -- cgit v1.2.3