Testing modules
This commit is contained in:
@@ -55,8 +55,12 @@
|
||||
|
||||
#ifndef NDEBUG
|
||||
#include <stdexcept>
|
||||
#define FGL_ASSERT( test, msg ) assert( ( test ) && "msg" );
|
||||
//if ( !( test ) ) throw std::runtime_error( msg );
|
||||
#define FGL_ASSERT( test, msg ) \
|
||||
if ( !( test ) ) \
|
||||
{ \
|
||||
throw std::runtime_error( msg ); \
|
||||
std::abort(); \
|
||||
}
|
||||
#else
|
||||
#define FGL_ASSERT( test, msg )
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user