diff --git a/fgl_cmake_modules b/fgl_cmake_modules index 1d3efaf..9b3cdc0 160000 --- a/fgl_cmake_modules +++ b/fgl_cmake_modules @@ -1 +1 @@ -Subproject commit 1d3efaf2bcdcefd7ff312733e1eda7933e8c24d6 +Subproject commit 9b3cdc0c131400a4f14f42c1cd07ba14b07ba1e0 diff --git a/include/fgl/defines.hpp b/include/fgl/defines.hpp index 1bb1e0f..c8e90a8 100644 --- a/include/fgl/defines.hpp +++ b/include/fgl/defines.hpp @@ -55,8 +55,12 @@ #ifndef NDEBUG #include -#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