- consistent use of ai_assert instead of assert.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1241 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2012-04-22 23:22:40 +00:00
parent adfef670cc
commit ec6c62e005
8 changed files with 16 additions and 17 deletions

View File

@@ -2115,7 +2115,7 @@ void ColladaParser::ReadPrimitives( Mesh* pMesh, std::vector<InputChannel>& pPer
for( size_t b = 0; b < numPoints; b++)
{
// read all indices for this vertex. Yes, in a hacky local array
assert( numOffsets < 20 && perVertexOffset < 20);
ai_assert( numOffsets < 20 && perVertexOffset < 20);
size_t vindex[20];
for( size_t offsets = 0; offsets < numOffsets; ++offsets)
vindex[offsets] = *idx++;
@@ -2313,7 +2313,7 @@ void ColladaParser::ReadSceneNode( Node* pNode)
child->mName = mReader->getAttributeValue( attrName);
// TODO: (thom) support SIDs
// assert( TestAttribute( "sid") == -1);
// ai_assert( TestAttribute( "sid") == -1);
if (pNode)
{
@@ -2781,7 +2781,7 @@ aiMatrix4x4 ColladaParser::CalculateResultTransform( const std::vector<Transform
break;
}
default:
assert( false);
ai_assert( false);
break;
}
}