bug #1273: Add parentheses when redefining eigen_assert

This commit is contained in:
Christoph Hertzberg 2016-08-12 15:34:21 +02:00
parent c83b754ee0
commit 9636a8ed43

View File

@ -16,7 +16,7 @@ Both eigen_assert and eigen_plain_assert are defined in Macros.h. Defining eigen
#include <stdexcept>
#undef eigen_assert
#define eigen_assert(x) \
if (!x) { throw (std::runtime_error("Put your message here")); }
if (!(x)) { throw (std::runtime_error("Put your message here")); }
\endcode
\subsection DisableAssert Disabling assertions