28 #ifndef TOMOGRAPHER_TOOLS_EIGEN_ASSERT_EXCEPTION_H 29 #define TOMOGRAPHER_TOOLS_EIGEN_ASSERT_EXCEPTION_H 66 : _msg(
"eigen_assert() failed: `" + msg +
"' at " + file +
", line " +
std::to_string(line))
71 virtual const char * what()
const noexcept {
return _msg.c_str(); }
81 #define VERIFY_RAISES_ASSERT 1 93 #define eigen_assert_throw_exception(x) \ 95 tomographer_eigen_assert_failure_cleanup(); \ 96 throw (::Tomographer::Tools::EigenAssertException(#x, __FILE__, __LINE__)); \ 130 #ifdef TOMOGRAPHER_EIGEN_ASSERT_EXCEPTION 133 #define eigen_assert(x) eigen_assert_throw_exception(x) Base namespace for the Tomographer project.
void tomographer_eigen_assert_failure_cleanup()
Gets called when we use eigen assertion exceptions and when eigen_assert() fails. ...
Basic definitions, which may have to be defined before any Eigen headers or further utilities are inc...