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
011fa303
Verified
Commit
011fa303
authored
Oct 18, 2019
by
Justin Carpentier
Browse files
doc/macros: fix
parent
7bf10d1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/macros.hpp
View file @
011fa303
...
...
@@ -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__)
...
...
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