Use L_GNUC_NORETURN in couple of places
This commit is contained in:
parent
ff5b5529a8
commit
00ac6f50ae
@ -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) {
|
if (L->errorJmp) {
|
||||||
L->errorJmp->status = errcode;
|
L->errorJmp->status = errcode;
|
||||||
LUAI_THROW(L, L->errorJmp);
|
LUAI_THROW(L, L->errorJmp);
|
||||||
@ -365,7 +365,7 @@ int luaD_poscall (lua_State *L, StkId firstResult) {
|
|||||||
** The arguments are on the stack, right after the function.
|
** The arguments are on the stack, right after the function.
|
||||||
** When returns, all the results are on the stack, starting at the original
|
** When returns, all the results are on the stack, starting at the original
|
||||||
** function position.
|
** function position.
|
||||||
*/
|
*/
|
||||||
void luaD_call (lua_State *L, StkId func, int nResults) {
|
void luaD_call (lua_State *L, StkId func, int nResults) {
|
||||||
if (++L->nCcalls >= LUAI_MAXCCALLS) {
|
if (++L->nCcalls >= LUAI_MAXCCALLS) {
|
||||||
if (L->nCcalls == LUAI_MAXCCALLS)
|
if (L->nCcalls == LUAI_MAXCCALLS)
|
||||||
|
@ -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));
|
exit(luaL_optint(L, 1, EXIT_SUCCESS));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user