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
7bf10d1b
Verified
Commit
7bf10d1b
authored
Oct 18, 2019
by
Justin Carpentier
Browse files
macros: fix use of given input exception in PINOCCHIO_THROW
parent
39afa97c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/macros.hpp
View file @
7bf10d1b
...
...
@@ -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)); }
#define _PINOCCHIO_GET_OVERRIDE(_1, _2, MACRO_NAME, ...) MACRO_NAME
...
...
Write
Preview
Supports
Markdown
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