Commit 469d2d5e authored by Wolfgang Merkt's avatar Wolfgang Merkt
Browse files

Change generic message for runtime assert

parent 4a28d1e7
......@@ -22,7 +22,7 @@
#include <exception>
/// \brief Macro to check an assert-like condition and throw a runtime error exception (with a message) if violated.
#define PINOCCHIO_ASSERT_THROW_AT_RUNTIME(cond) if (!(cond)) { throw std::runtime_error("Wrong argument size"); }
#define PINOCCHIO_ASSERT_THROW_AT_RUNTIME(cond) if (!(cond)) { throw std::runtime_error("Please check the dimensions of all input arguments."); }
#define PINOCCHIO_ASSERT_THROW_AT_RUNTIME_WITH_MESSAGE(cond, message) if (!(cond)) { throw std::runtime_error(message); }
// For more details, visit https://stackoverflow.com/questions/171435/portability-of-warning-preprocessor-directive
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment