Testing modules

This commit is contained in:
2025-03-18 06:12:54 -04:00
parent 8309ec512b
commit ed145c9440
2 changed files with 7 additions and 3 deletions

View File

@@ -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