| 754 | |
| 755 | |
| 756 | l_noret luaG_errormsg (lua_State *L) { |
| 757 | if (L->errfunc != 0) { /* is there an error handling function? */ |
| 758 | StkId errfunc = restorestack(L, L->errfunc); |
| 759 | lua_assert(ttisfunction(s2v(errfunc))); |
| 760 | setobjs2s(L, L->top, L->top - 1); /* move argument */ |
| 761 | setobjs2s(L, L->top - 1, errfunc); /* push function */ |
| 762 | L->top++; /* assume EXTRA_STACK */ |
| 763 | luaD_callnoyield(L, L->top - 2, 1); /* call it */ |
| 764 | } |
| 765 | luaD_throw(L, LUA_ERRRUN); |
| 766 | } |
| 767 | |
| 768 | |
| 769 | l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { |
no test coverage detected