Verified Commit 4f405071 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

macros: improve return message with print of the condition

parent cf209993
......@@ -37,7 +37,9 @@
PINOCCHIO_THROW(condition,std::invalid_argument,PINOCCHIO_STRING_LITERAL(message))
#define _PINOCCHIO_CHECK_INPUT_ARGUMENT_1(condition) \
_PINOCCHIO_CHECK_INPUT_ARGUMENT_2(condition,"Please check the dimensions of all input arguments.")
_PINOCCHIO_CHECK_INPUT_ARGUMENT_2(condition,\
"Please check the dimensions of all input arguments.\n"\
"The following check has failed: "#condition)
#define _PINOCCHIO_CHECK_INPUT_ARGUMENT_0
......
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