Verified Commit 7bf10d1b authored by Justin Carpentier's avatar Justin Carpentier
Browse files

macros: fix use of given input exception in PINOCCHIO_THROW

parent 39afa97c
......@@ -29,7 +29,7 @@
/// \brief Macro to check an assert-like condition and throw a runtime error exception (with a message) if violated.
#define PINOCCHIO_THROW(condition,exception_type,message) \
if (!(condition)) { throw std::runtime_error(PINOCCHIO_STRING_LITERAL(message)); }
if (!(condition)) { throw exception_type(PINOCCHIO_STRING_LITERAL(message)); }
Supports Markdown
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