2009-01-13 18:58:07 +00:00
|
|
|
/** @file aiAssert.h
|
|
|
|
*/
|
2008-05-05 12:36:31 +00:00
|
|
|
#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
|
2008-10-13 16:45:48 +00:00
|
|
|
# define ai_assert(expression) Assimp::aiAssert (expression, #expression, __LINE__, __FILE__);
|
2008-05-05 12:36:31 +00:00
|
|
|
#else
|
|
|
|
# define ai_assert(expression)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
} // Namespace Assimp
|
|
|
|
|
|
|
|
#endif
|