mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-01 13:13:53 +00:00
Undef error macros at end of file
This commit is contained in:
parent
db8ccf8afe
commit
9b54b6e0fe
@ -13,7 +13,8 @@
|
||||
|
||||
namespace CLI {
|
||||
|
||||
// Use one of these on all error classes
|
||||
// Use one of these on all error classes.
|
||||
// These are temporary and are undef'd at the end of this file.
|
||||
#define CLI11_ERROR_DEF(parent, name) \
|
||||
protected: \
|
||||
name(std::string name, std::string msg, int exit_code) : parent(std::move(name), std::move(msg), exit_code) {} \
|
||||
@ -289,6 +290,9 @@ class OptionNotFound : public Error {
|
||||
explicit OptionNotFound(std::string name) : OptionNotFound(name + " not found", ExitCodes::OptionNotFound) {}
|
||||
};
|
||||
|
||||
#undef CLI11_ERROR_DEF
|
||||
#undef CLI11_ERROR_SIMPLE
|
||||
|
||||
/// @}
|
||||
|
||||
} // namespace CLI
|
||||
|
Loading…
x
Reference in New Issue
Block a user