NORETURN for throw functions in 0.x.y branch

Added in definition also.
This commit is contained in:
Gaurav 2016-03-16 11:23:36 +05:30
parent 20564b3f0c
commit aec261a899

View File

@ -168,11 +168,11 @@ RuntimeError::RuntimeError(std::string const& msg)
LogicError::LogicError(std::string const& msg)
: Exception(msg)
{}
void throwRuntimeError(std::string const& msg)
JSONCPP_NORETURN void throwRuntimeError(std::string const& msg)
{
throw RuntimeError(msg);
}
void throwLogicError(std::string const& msg)
JSONCPP_NORETURN void throwLogicError(std::string const& msg)
{
throw LogicError(msg);
}