diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-15 03:10:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-15 03:12:10 +0300 |
commit | e55c29b4ec1a895b151b13738423205607688b85 (patch) | |
tree | e42613cbca540e0520f291beaaec081af50b3a5d /source/blender/blenlib/intern/math_bits_inline.c | |
parent | b0823962e9b82d2bfa0551cb072bd61b67ddc773 (diff) |
BLI_math: don't use asserts in inline API
Requires BLI_utildefines.h to be included first,
(already noted in other inline code).
Possible alternative could be to move BLI_assert into own header.
Diffstat (limited to 'source/blender/blenlib/intern/math_bits_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_bits_inline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_bits_inline.c b/source/blender/blenlib/intern/math_bits_inline.c index 37fdcd7878a..3829b9d219c 100644 --- a/source/blender/blenlib/intern/math_bits_inline.c +++ b/source/blender/blenlib/intern/math_bits_inline.c @@ -33,7 +33,9 @@ MINLINE int bitscan_forward_i(int a) { +#if 0 /* No BLI_assert in INLINE :/ */ BLI_assert(a != 0); +#endif # ifdef _MSC_VER unsigned long ctz; _BitScanForward(&ctz, a); |