exception/detail/attribute_noreturn.hpp has been removed in 1.56. We
shouldn't have used a detail header in the first place. In master
we can use GMX_ATTRIBUTE_NORETURN but 5.0.x it is defined only
for code analysis not for compilers.
Change-Id: I6f26d6ddc62c73f583d324f7c794a499c274b394
#define GMX_UTILITY_GMXASSERT_H
#include <boost/current_function.hpp>
-#include <boost/exception/detail/attribute_noreturn.hpp>
//! \addtogroup module_utility
//! \{
*
* \ingroup module_utility
*/
-BOOST_ATTRIBUTE_NORETURN
+#if defined(_MSC_VER)
+__declspec(noreturn)
+#elif defined(__GNUC__)
+__attribute__((__noreturn__))
+#endif
void assertHandler(const char *condition, const char *msg,
const char *func, const char *file, int line);