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:
parent
b0823962e9
commit
e55c29b4ec
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue