| 638 | |
| 639 | |
| 640 | l_noret luaG_errormsg (lua_State *L) { |
| 641 | if (L->errfunc != 0) { /* is there an error handling function? */ |
| 642 | StkId errfunc = restorestack(L, L->errfunc); |
| 643 | setobjs2s(L, L->top, L->top - 1); /* move argument */ |
| 644 | setobjs2s(L, L->top - 1, errfunc); /* push function */ |
| 645 | L->top++; /* assume EXTRA_STACK */ |
| 646 | luaD_callnoyield(L, L->top - 2, 1); /* call it */ |
| 647 | } |
| 648 | luaD_throw(L, LUA_ERRRUN); |
| 649 | } |
| 650 | |
| 651 | |
| 652 | l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { |
no test coverage detected