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