27 #ifndef TOMOGRAPHER_TOOLS_EIGEN_ASSERT_EXCEPTION_H
28 #define TOMOGRAPHER_TOOLS_EIGEN_ASSERT_EXCEPTION_H
59 : _msg(
"eigen_assert() failed: `" + msg +
"' at " + file +
", line " +
std::to_string(line))
64 virtual const char * what()
const noexcept {
return _msg.
c_str(); }
78 #define eigen_assert_throw_exception(x) \
79 if (!(x)) { throw (::Tomographer::Tools::eigen_assert_exception(#x, __FILE__, __LINE__)); }
82 #ifdef TOMOGRAPHER_EIGEN_ASSERT_EXCEPTION
85 #define eigen_assert(x) eigen_assert_throw_exception(x)
Base namespace for the Tomographer project.