Improving homogeneity of DEBUG macro for improved portability with compilers other than Visual Studio

This commit is contained in:
Léo Terziman
2013-11-21 13:05:48 +01:00
parent 29c125e51d
commit 4e7b59be55
19 changed files with 27 additions and 27 deletions

View File

@@ -1063,7 +1063,7 @@ IfcMatrix4 ProjectOntoPlane(std::vector<IfcVector2>& out_contour, const TempMesh
if(!ok) {
return IfcMatrix4();
}
#ifdef _DEBUG
#ifdef ASSIMP_BUILD_DEBUG
const IfcFloat det = m.Determinant();
ai_assert(fabs(det-1) < 1e-5);
#endif
@@ -1119,7 +1119,7 @@ IfcMatrix4 ProjectOntoPlane(std::vector<IfcVector2>& out_contour, const TempMesh
m = mult * m;
// debug code to verify correctness
#ifdef _DEBUG
#ifdef ASSIMP_BUILD_DEBUG
std::vector<IfcVector2> out_contour2;
BOOST_FOREACH(const IfcVector3& x, in_verts) {
const IfcVector3& vv = m * x;