Files
EgtGeomKernel/tpp_assert.hpp
T
SaraP 3932cf07e5 EgtGeomKernel :
- in Triangulate aggiunta triangolazione Delaunay
- aggiunti file della libreria TrianglePP
- funzioni per polylines spostate da SurfTriMeshBooleans.cpp a PolyLine.cpp.
2021-06-29 15:51:53 +02:00

30 lines
699 B
C++

/*! \file assert.hpp
\brief Implements a better 'Assert'.
Used in the reviver::dpoint inplementation.
*/
namespace tpp {
#ifndef REVIVER_ASSERT_HPP
#define REVIVER_ASSERT_HPP
/*! \def MyAssertFunction
\brief Function used by 'Assert' function in _DEBUG mode.
*/
extern bool MyAssertFunction( bool b, const char* desc, int line, const char* file);
#if defined( _DEBUG )
// changed mrkkrj --
//#define Assert( exp, description ) MyAssertFunction( (int)(exp), description, __LINE__, __FILE__ )
#define Assert( exp, description ) tpp::MyAssertFunction( (int)(exp), description, __LINE__, __FILE__ )
// END changed --
#else
#define Assert( exp, description )
#endif
#endif
}