| 585 | |
| 586 | |
| 587 | l_noret luaG_errormsg (lua_State *L) { |
| 588 | if (L->errfunc != 0) { /* is there an error handling function? */ |
| 589 | StkId errfunc = restorestack(L, L->errfunc); |
| 590 | if (!ttisfunction(errfunc)) luaD_throw(L, LUA_ERRERR); |
| 591 | setobjs2s(L, L->top, L->top - 1); /* move argument */ |
| 592 | setobjs2s(L, L->top - 1, errfunc); /* push function */ |
| 593 | L->top++; |
| 594 | luaD_call(L, L->top - 2, 1, 0); /* call it */ |
| 595 | } |
| 596 | luaD_throw(L, LUA_ERRRUN); |
| 597 | } |
| 598 | |
| 599 | |
| 600 | l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { |
no test coverage detected