MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaG_errormsg

Function luaG_errormsg

lib/lua/src/ldebug.c:826–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824
825
826l_noret luaG_errormsg (lua_State *L) {
827 if (L->errfunc != 0) { /* is there an error handling function? */
828 StkId errfunc = restorestack(L, L->errfunc);
829 lua_assert(ttisfunction(s2v(errfunc)));
830 setobjs2s(L, L->top.p, L->top.p - 1); /* move argument */
831 setobjs2s(L, L->top.p - 1, errfunc); /* push function */
832 L->top.p++; /* assume EXTRA_STACK */
833 luaD_callnoyield(L, L->top.p - 2, 1); /* call it */
834 }
835 luaD_throw(L, LUA_ERRRUN);
836}
837
838
839l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {

Callers 2

luaG_runerrorFunction · 0.85
lua_errorFunction · 0.85

Calls 2

luaD_callnoyieldFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected