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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-03-15 03:10:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-03-15 03:12:10 +0300
commite55c29b4ec1a895b151b13738423205607688b85 (patch)
treee42613cbca540e0520f291beaaec081af50b3a5d /source
parentb0823962e9b82d2bfa0551cb072bd61b67ddc773 (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')
-rw-r--r--source/blender/blenlib/intern/math_bits_inline.c2
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);