MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaG_errormsg

Function luaG_errormsg

extlibs/lua/src/ldebug.c:756–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754
755
756l_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
769l_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