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

Function luaG_errormsg

engine/lua/src/lua/ldebug.c:618–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616
617
618void luaG_errormsg (lua_State *L) {
619 if (L->errfunc != 0) { /* is there an error handling function? */
620 StkId errfunc = restorestack(L, L->errfunc);
621 if (!ttisfunction(errfunc)) luaD_throw(L, LUA_ERRERR);
622 setobjs2s(L, L->top, L->top - 1); /* move argument */
623 setobjs2s(L, L->top - 1, errfunc); /* push function */
624 incr_top(L);
625 luaD_call(L, L->top - 2, 1); /* call it */
626 }
627 luaD_throw(L, LUA_ERRRUN);
628}
629
630
631void luaG_runerror (lua_State *L, const char *fmt, ...) {

Callers 2

luaG_runerrorFunction · 0.85
lua_errorFunction · 0.85

Calls 2

luaD_throwFunction · 0.85
luaD_callFunction · 0.85

Tested by

no test coverage detected