Bugfix: moved ai_assert condition evaluation out of the assert function to avoid constructing two expensive strings on every single call.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@525 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
ulfjorensen
2010-01-06 22:04:31 +00:00
parent c508bafbad
commit 185c30c85b
3 changed files with 10 additions and 8 deletions

View File

@@ -87,7 +87,7 @@ void ValidateDSProcess::ReportError(const char* msg,...)
va_end(args);
#ifdef _DEBUG
aiAssert( false,szBuffer,__LINE__,__FILE__ );
aiAssert( szBuffer,__LINE__,__FILE__ );
#endif
throw new ImportErrorException("Validation failed: " + std::string(szBuffer,iLen));
}