mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-25 15:46:03 +01:00
Added NORETURN for throw functions.
Fix in definition also.
This commit is contained in:
parent
d97ea5bf8d
commit
0b597b4b48
@ -171,11 +171,11 @@ RuntimeError::RuntimeError(JSONCPP_STRING const& msg)
|
||||
LogicError::LogicError(JSONCPP_STRING const& msg)
|
||||
: Exception(msg)
|
||||
{}
|
||||
void throwRuntimeError(JSONCPP_STRING const& msg)
|
||||
JSONCPP_NORETURN void throwRuntimeError(JSONCPP_STRING const& msg)
|
||||
{
|
||||
throw RuntimeError(msg);
|
||||
}
|
||||
void throwLogicError(JSONCPP_STRING const& msg)
|
||||
JSONCPP_NORETURN void throwLogicError(JSONCPP_STRING const& msg)
|
||||
{
|
||||
throw LogicError(msg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user