diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-07-09 01:52:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-07-09 01:53:43 +0400 |
commit | f4484daed341f879b9cd6b16e4ffa809ccf3d81c (patch) | |
tree | ee743177a07aad192fd2c3e8c72d534d6d744a2e /source/blender/blenlib/BLI_linklist_stack.h | |
parent | a83c6293f43a8c8b8603ba9e17c32d34eb9edd4d (diff) |
Correct IS_EMPTY macro
also prevent reading from BM_ELEM_API_FLAG_ get/setters
Diffstat (limited to 'source/blender/blenlib/BLI_linklist_stack.h')
-rw-r--r-- | source/blender/blenlib/BLI_linklist_stack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_linklist_stack.h b/source/blender/blenlib/BLI_linklist_stack.h index d3d1924628c..84e7130a962 100644 --- a/source/blender/blenlib/BLI_linklist_stack.h +++ b/source/blender/blenlib/BLI_linklist_stack.h @@ -160,7 +160,7 @@ _##var##_stack->link : NULL)) #define BLI_SMALLSTACK_IS_EMPTY(var) \ - (_BLI_SMALLSTACK_CAST(var) (_##var##_stack != NULL)) + ((_BLI_SMALLSTACK_CAST(var) _##var##_stack) == NULL) /* loop over stack members last-added-first */ #define BLI_SMALLSTACK_ITER_BEGIN(var, item) \ |