Initiual commit: AssetImporter source moved from ZFXCE repository to its own repository. PLease do not use the ZFXCE repo any more.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
26
code/aiAssert.cpp
Normal file
26
code/aiAssert.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include <iostream>
|
||||
#include "aiAssert.h"
|
||||
#ifdef _WIN32
|
||||
#ifndef __GNUC__
|
||||
# include "crtdbg.h"
|
||||
#endif //ndef gcc
|
||||
#endif
|
||||
|
||||
// Set a breakpoint using win32, else line, file and message will be returned and progam ends with
|
||||
// errrocode = 1
|
||||
void Assimp::aiAssert (bool expression, const std::string &message, unsigned int uiLine, const std::string &file)
|
||||
{
|
||||
if (!expression)
|
||||
{
|
||||
std::cerr << "File :" << file << ", line " << uiLine << " : " << message << std::endl;
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifndef __GNUC__
|
||||
// Set breakpoint
|
||||
__debugbreak();
|
||||
#endif //ndef gcc
|
||||
#else
|
||||
exit (1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user