diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-22 17:00:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-22 17:00:02 +0400 |
commit | 436bbdfd247f66a856b17e4e73db8f8fb3fe6d6d (patch) | |
tree | c72eb1ce03d701a7a99ab0b039f89b20af28374c /source/blender/blenlib/BLI_utildefines.h | |
parent | 4e11fe6c5aec1d609e3ecc2218138b838d253ebf (diff) |
style cleanup: use more const's in BLI_heap & dpx/cineon style cleanup
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index 0dab51154eb..801cff089d7 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -109,9 +109,7 @@ #define CHECK_TYPE_INLINE(val, type) \ ((void)(((type *)0) != (val))) - -#ifndef SWAP -# define SWAP(type, a, b) { \ +#define SWAP(type, a, b) { \ type sw_ap; \ CHECK_TYPE(a, type); \ CHECK_TYPE(b, type); \ @@ -119,7 +117,6 @@ (a) = (b); \ (b) = sw_ap; \ } (void)0 -#endif /* swap with a temp value */ #define SWAP_TVAL(tval, a, b) { \ |