Added AC-loader, WIP version. PLY loader is now able to load models from blender, test model added. Refactoring. Added FindInvalidData step. Added support for precompiled headers, the release builds in VC8 are configued to use PCH now. Added separate makefile for mingw, no -FPic warning anymore, -clear works now. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@176 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
30 lines
727 B
C++
30 lines
727 B
C++
|
|
#include "assimpPCH.h"
|
|
|
|
#include "../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)
|
|
{
|
|
// FIX (Aramis): changed std::cerr to std::cout that the message appears in VS' output window ...
|
|
std::cout << "File :" << file << ", line " << uiLine << " : " << message << std::endl;
|
|
|
|
#ifdef _WIN32
|
|
#ifndef __GNUC__
|
|
// Set breakpoint
|
|
__debugbreak();
|
|
#endif //ndef gcc
|
|
#else
|
|
exit (1);
|
|
#endif
|
|
}
|
|
}
|