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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user