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:
erwin.coumans
2012-09-02 17:54:30 +00:00
parent c28f413e50
commit c1138535f9
6 changed files with 32 additions and 15 deletions

View File

@@ -88,9 +88,9 @@ static bool TestSepAxis(const btConvexPolyhedron& hullA, const btConvexPolyhedro
return false;
btScalar d0 = Max0 - Min1;
assert(d0>=0.0f);
btAssert(d0>=0.0f);
btScalar d1 = Max1 - Min0;
assert(d1>=0.0f);
btAssert(d1>=0.0f);
depth = d0<d1 ? d0:d1;
return true;
}