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
29 lines
669 B
C++
29 lines
669 B
C++
#ifndef AI_DEBUG_H_INC
|
|
#define AI_DEBUG_H_INC
|
|
|
|
#include <string>
|
|
|
|
#ifndef __cplusplus
|
|
#error This header requires C++ to be used.
|
|
#endif
|
|
|
|
namespace Assimp {
|
|
|
|
//! \brief ASSIMP specific assertion test, just works in debug mode
|
|
//! \param uiLine Line in file
|
|
//! \param file Source file
|
|
void aiAssert (bool expression, const std::string &message, unsigned int uiLine, const std::string &file);
|
|
|
|
|
|
//! \def ai_assert
|
|
//! \brief ASSIM specific assertion test
|
|
#ifdef DEBUG
|
|
# define ai_assert(expression) Assimp::aiAssert (expression, #expression, __LINE__, __FILE__);
|
|
#else
|
|
# define ai_assert(expression)
|
|
#endif
|
|
|
|
} // Namespace Assimp
|
|
|
|
#endif
|