MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaG_errormsg

Function luaG_errormsg

ThirdParty/lua/lua/ldebug.c:591–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589
590
591l_noret luaG_errormsg (lua_State *L) {
592 if (L->errfunc != 0) { /* is there an error handling function? */
593 StkId errfunc = restorestack(L, L->errfunc);
594 setobjs2s(L, L->top, L->top - 1); /* move argument */
595 setobjs2s(L, L->top - 1, errfunc); /* push function */
596 L->top++; /* assume EXTRA_STACK */
597 luaD_call(L, L->top - 2, 1, 0); /* call it */
598 }
599 luaD_throw(L, LUA_ERRRUN);
600}
601
602
603l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {

Callers 2

luaG_runerrorFunction · 0.85
lua_errorFunction · 0.85

Calls 2

luaD_callFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected