| 763 | |
| 764 | |
| 765 | l_noret luaG_errormsg (lua_State *L) { |
| 766 | if (L->errfunc != 0) { /* is there an error handling function? */ |
| 767 | StkId errfunc = restorestack(L, L->errfunc); |
| 768 | lua_assert(ttisfunction(s2v(errfunc))); |
| 769 | setobjs2s(L, L->top, L->top - 1); /* move argument */ |
| 770 | setobjs2s(L, L->top - 1, errfunc); /* push function */ |
| 771 | L->top++; /* assume EXTRA_STACK */ |
| 772 | luaD_callnoyield(L, L->top - 2, 1); /* call it */ |
| 773 | } |
| 774 | luaD_throw(L, LUA_ERRRUN); |
| 775 | } |
| 776 | |
| 777 | |
| 778 | l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { |
no test coverage detected