Use L_GNUC_NORETURN in couple of places

This commit is contained in:
Yevgen Muntyan 2008-01-30 17:52:39 -06:00
parent ff5b5529a8
commit 00ac6f50ae
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ static void resetstack (lua_State *L, int status) {
}
void luaD_throw (lua_State *L, int errcode) {
L_GNUC_NORETURN void luaD_throw (lua_State *L, int errcode) {
if (L->errorJmp) {
L->errorJmp->status = errcode;
LUAI_THROW(L, L->errorJmp);

View File

@ -213,7 +213,7 @@ static int os_setlocale (lua_State *L) {
}
static int os_exit (lua_State *L) {
L_GNUC_NORETURN static int os_exit (lua_State *L) {
exit(luaL_optint(L, 1, EXIT_SUCCESS));
}