Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
4f405071
Verified
Commit
4f405071
authored
Oct 18, 2019
by
Justin Carpentier
Browse files
macros: improve return message with print of the condition
parent
cf209993
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/macros.hpp
View file @
4f405071
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment