Added NORETURN for throw functions.

Fix in definition also.
This commit is contained in:
Gaurav 2016-03-16 11:17:21 +05:30
parent d97ea5bf8d
commit 0b597b4b48

View File

@ -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);
}