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>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/bmesh/intern/bmesh_private.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_private.h')
-rw-r--r--source/blender/bmesh/intern/bmesh_private.h58
1 files changed, 37 insertions, 21 deletions
diff --git a/source/blender/bmesh/intern/bmesh_private.h b/source/blender/bmesh/intern/bmesh_private.h
index c0f74c50a3a..b77243f7b26 100644
--- a/source/blender/bmesh/intern/bmesh_private.h
+++ b/source/blender/bmesh/intern/bmesh_private.h
@@ -31,19 +31,23 @@
/* returns positive nonzero on error */
#ifdef NDEBUG
- /* no error checking for release,
+/* no error checking for release,
* it can take most of the CPU time when running some tools */
-# define BM_CHECK_ELEMENT(el) (void)(el)
+# define BM_CHECK_ELEMENT(el) (void)(el)
#else
int bmesh_elem_check(void *element, const char htype);
-# define BM_CHECK_ELEMENT(el) { \
- if (bmesh_elem_check(el, ((BMHeader *)el)->htype)) { \
- printf("check_element failure, with code %i on line %i in file\n" \
- " \"%s\"\n\n", \
- bmesh_elem_check(el, ((BMHeader *)el)->htype), \
- __LINE__, __FILE__); \
- } \
-} ((void)0)
+# define BM_CHECK_ELEMENT(el) \
+ { \
+ if (bmesh_elem_check(el, ((BMHeader *)el)->htype)) { \
+ printf( \
+ "check_element failure, with code %i on line %i in file\n" \
+ " \"%s\"\n\n", \
+ bmesh_elem_check(el, ((BMHeader *)el)->htype), \
+ __LINE__, \
+ __FILE__); \
+ } \
+ } \
+ ((void)0)
#endif
int bmesh_radial_length(const BMLoop *l);
@@ -55,20 +59,32 @@ int bmesh_disk_count(const BMVert *v);
* \note Ensure different parts of the API do not conflict
* on using these internal flags!*/
enum {
- _FLAG_JF = (1 << 0), /* join faces */
- _FLAG_MF = (1 << 1), /* make face */
- _FLAG_MV = (1 << 1), /* make face, vertex */
- _FLAG_OVERLAP = (1 << 2), /* general overlap flag */
- _FLAG_WALK = (1 << 3), /* general walk flag (keep clean) */
- _FLAG_WALK_ALT = (1 << 4), /* same as _FLAG_WALK, for when a second tag is needed */
+ _FLAG_JF = (1 << 0), /* join faces */
+ _FLAG_MF = (1 << 1), /* make face */
+ _FLAG_MV = (1 << 1), /* make face, vertex */
+ _FLAG_OVERLAP = (1 << 2), /* general overlap flag */
+ _FLAG_WALK = (1 << 3), /* general walk flag (keep clean) */
+ _FLAG_WALK_ALT = (1 << 4), /* same as _FLAG_WALK, for when a second tag is needed */
- _FLAG_ELEM_CHECK = (1 << 7), /* reserved for bmesh_elem_check */
+ _FLAG_ELEM_CHECK = (1 << 7), /* reserved for bmesh_elem_check */
};
-#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 &= (uchar)~(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
+#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 &= (uchar) ~(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);