diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-08 10:40:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-08 10:40:03 +0400 |
commit | a9f10b6bc2fb55be26ae3a7e8b1467213678a0f6 (patch) | |
tree | 12ac3a6320add8687c455cc7065b6eef0a73de7d /source/blender/blenlib/BLI_math_base.h | |
parent | c95d4f68b863c851d0b8bddef8092fdc0932610e (diff) |
style cleanup
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 4a89776a52e..886ed6f495d 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -164,7 +164,10 @@ #endif #ifndef CLAMP -# define CLAMP(a, b, c) if ((a) < (b)) (a) = (b); else if ((a) > (c)) (a) = (c) +# define CLAMP(a, b, c) { \ + if ((a) < (b)) (a) = (b); \ + else if ((a) > (c)) (a) = (c); \ +} (void)0 #endif #ifdef __BLI_MATH_INLINE_H__ |