use btAssert instead of assert
use __debugbreak for Windows MSVC asserts and asm volatile ("int3");\ on Mac OSX (__i386__ / __x86_64__)
This commit is contained in:
@@ -385,9 +385,9 @@ static bool TestSepAxis(const btVector3& sep_axis, const MyConvex& hull0, const
|
||||
return false;
|
||||
|
||||
float d0 = Max0 - Min1;
|
||||
assert(d0>=0.0f);
|
||||
btAssert(d0>=0.0f);
|
||||
float d1 = Max1 - Min0;
|
||||
assert(d1>=0.0f);
|
||||
btAssert(d1>=0.0f);
|
||||
depth = d0<d1 ? d0:d1;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user