mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-04-21 00:11:50 +02:00
NORETURN for throw functions in 0.x.y branch
Added in definition also.
This commit is contained in:
parent
20564b3f0c
commit
aec261a899
@ -168,11 +168,11 @@ RuntimeError::RuntimeError(std::string const& msg)
|
|||||||
LogicError::LogicError(std::string const& msg)
|
LogicError::LogicError(std::string const& msg)
|
||||||
: Exception(msg)
|
: Exception(msg)
|
||||||
{}
|
{}
|
||||||
void throwRuntimeError(std::string const& msg)
|
JSONCPP_NORETURN void throwRuntimeError(std::string const& msg)
|
||||||
{
|
{
|
||||||
throw RuntimeError(msg);
|
throw RuntimeError(msg);
|
||||||
}
|
}
|
||||||
void throwLogicError(std::string const& msg)
|
JSONCPP_NORETURN void throwLogicError(std::string const& msg)
|
||||||
{
|
{
|
||||||
throw LogicError(msg);
|
throw LogicError(msg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user