diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-22 07:11:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-22 07:12:19 +0400 |
commit | c1c26c36f62c3bfdb40b01f33004695a09ce2f4d (patch) | |
tree | 21e738fefe0c7d77af7c1129bcdfef65e1a8f655 /source/blender/editors/uvedit | |
parent | 5eb96d4705b93a7049ecabd0827e0e58b28a2838 (diff) |
Style Cleanup: remove preprocessor indentation (updated wiki style guide too)
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_parametrizer.c | 20 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_smart_stitch.c | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index e5c3510db4b..34c44185026 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -52,24 +52,24 @@ /* Utils */ #if 0 - #define param_assert(condition) - #define param_warning(message) - #define param_test_equals_ptr(condition) - #define param_test_equals_int(condition) +# define param_assert(condition) +# define param_warning(message) +# define param_test_equals_ptr(condition) +# define param_test_equals_int(condition) #else - #define param_assert(condition) \ +# define param_assert(condition) \ if (!(condition)) \ { /*printf("Assertion %s:%d\n", __FILE__, __LINE__); abort();*/ } (void)0 - #define param_warning(message) \ +# define param_warning(message) \ { /*printf("Warning %s:%d: %s\n", __FILE__, __LINE__, message);*/ } (void)0 -#if 0 - #define param_test_equals_ptr(str, a, b) \ +# if 0 +# define param_test_equals_ptr(str, a, b) \ if (a != b) \ { /*printf("Equals %s => %p != %p\n", str, a, b);*/ } (void)0 - #define param_test_equals_int(str, a, b) \ +# define param_test_equals_int(str, a, b) \ if (a != b) \ { /*printf("Equals %s => %d != %d\n", str, a, b);*/ } (void)0 -#endif +# endif #endif typedef enum PBool { P_TRUE = 1, diff --git a/source/blender/editors/uvedit/uvedit_smart_stitch.c b/source/blender/editors/uvedit/uvedit_smart_stitch.c index 60747450661..c931c843a23 100644 --- a/source/blender/editors/uvedit/uvedit_smart_stitch.c +++ b/source/blender/editors/uvedit/uvedit_smart_stitch.c @@ -1529,11 +1529,11 @@ static void stitch_draw(const bContext *UNUSED(C), ARegion *UNUSED(ar), void *ar glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); UI_ThemeColor4(TH_STITCH_PREVIEW_EDGE); glDrawArrays(GL_POLYGON, index, stitch_preview->uvs_per_polygon[i]); - #if 0 +#if 0 glPolygonMode(GL_FRONT_AND_BACK, GL_POINT); UI_ThemeColor4(TH_STITCH_PREVIEW_VERT); glDrawArrays(GL_POLYGON, index, stitch_preview->uvs_per_polygon[i]); - #endif +#endif index += stitch_preview->uvs_per_polygon[i]; } |