MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaG_errormsg

Function luaG_errormsg

third-party/lua-5.3.5/src/ldebug.c:640–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638
639
640l_noret luaG_errormsg (lua_State *L) {
641 if (L->errfunc != 0) { /* is there an error handling function? */
642 StkId errfunc = restorestack(L, L->errfunc);
643 setobjs2s(L, L->top, L->top - 1); /* move argument */
644 setobjs2s(L, L->top - 1, errfunc); /* push function */
645 L->top++; /* assume EXTRA_STACK */
646 luaD_callnoyield(L, L->top - 2, 1); /* call it */
647 }
648 luaD_throw(L, LUA_ERRRUN);
649}
650
651
652l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {

Callers 2

luaG_runerrorFunction · 0.70
lua_errorFunction · 0.70

Calls 2

luaD_callnoyieldFunction · 0.70
luaD_throwFunction · 0.70

Tested by

no test coverage detected