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.
This commit is contained in:
Campbell Barton 2018-03-15 11:10:11 +11:00
parent b0823962e9
commit e55c29b4ec
1 changed files with 2 additions and 0 deletions

View File

@ -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);