diff --git a/src/utils/PastisAssert.hpp b/src/utils/PastisAssert.hpp index 90cfe15995f4c94460e4da4bc042f3a680496e08..9f5a171ac0b723ee553fb2a71b15e3d2743d6340 100644 --- a/src/utils/PastisAssert.hpp +++ b/src/utils/PastisAssert.hpp @@ -62,4 +62,12 @@ class AssertError #endif // NDEBUG +// stores the current state of Assert macro. This is useful for instance to +// noexcept management of Assert throws +#ifdef NDEBUG +#define NO_ASSERT true +#else // NDEBUG +#define NO_ASSERT false +#endif // NDEBUG + #endif // PASTIS_ASSERT_HPP