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/bmesh/intern/bmesh_private.h | |
parent | a83c6293f43a8c8b8603ba9e17c32d34eb9edd4d (diff) |
Correct IS_EMPTY macro
also prevent reading from BM_ELEM_API_FLAG_ get/setters
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_private.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/bmesh/intern/bmesh_private.h b/source/blender/bmesh/intern/bmesh_private.h index cac4713c8b2..731c36437d5 100644 --- a/source/blender/bmesh/intern/bmesh_private.h +++ b/source/blender/bmesh/intern/bmesh_private.h @@ -67,10 +67,10 @@ enum { _FLAG_OVERLAP = (1 << 2) /* general overlap flag */ }; -#define BM_ELEM_API_FLAG_ENABLE(element, f) ((element)->head.api_flag |= (f)) -#define BM_ELEM_API_FLAG_DISABLE(element, f) ((element)->head.api_flag &= ~(f)) -#define BM_ELEM_API_FLAG_TEST(element, f) ((element)->head.api_flag & (f)) -#define BM_ELEM_API_FLAG_CLEAR(element) ((element)->head.api_flag = 0) +#define BM_ELEM_API_FLAG_ENABLE(element, f) { ((element)->head.api_flag |= (f)); } (void)0 +#define BM_ELEM_API_FLAG_DISABLE(element, f) { ((element)->head.api_flag &= ~(f)); } (void)0 +#define BM_ELEM_API_FLAG_TEST(element, f) ((element)->head.api_flag & (f)) +#define BM_ELEM_API_FLAG_CLEAR(element) { ((element)->head.api_flag = 0); } (void)0 void poly_rotate_plane(const float normal[3], float (*verts)[3], unsigned const int nverts); |