Verified Commit 011fa303 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

doc/macros: fix

parent 7bf10d1b
......@@ -27,7 +27,7 @@
#pragma GCC diagnostic ignored "-Wvariadic-macros"
#endif
/// \brief Macro to check an assert-like condition and throw a runtime error exception (with a message) if violated.
/// \brief Generic macro to throw a en exception in Pinocchio with a given input message.
#define PINOCCHIO_THROW(condition,exception_type,message) \
if (!(condition)) { throw exception_type(PINOCCHIO_STRING_LITERAL(message)); }
......@@ -41,6 +41,7 @@
#define _PINOCCHIO_CHECK_INPUT_ARGUMENT_0
/// \brief Macro to check an assert-like condition and throw a std::invalid_argument exception (with a message) if violated.
#define PINOCCHIO_CHECK_INPUT_ARGUMENT(...) \
_PINOCCHIO_GET_OVERRIDE(__VA_ARGS__,_PINOCCHIO_CHECK_INPUT_ARGUMENT_2,\
_PINOCCHIO_CHECK_INPUT_ARGUMENT_1,_PINOCCHIO_CHECK_INPUT_ARGUMENT_0)(__VA_ARGS__)
......
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