MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaG_errormsg

Function luaG_errormsg

depends/lua/src/ldebug.c:641–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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