MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaG_errormsg

Function luaG_errormsg

src/Chain/libraries/glua/ldebug.cpp:645–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645void luaG_errormsg(lua_State *L, const char *msg) {
646 if (L->errfunc != 0) { /* is there an error handling function? */
647 StkId errfunc = restorestack(L, L->errfunc);
648 setobjs2s(L, L->top, L->top - 1); /* move argument */
649 setobjs2s(L, L->top - 1, errfunc); /* push function */
650 L->top++; /* assume EXTRA_STACK */
651 luaD_callnoyield(L, L->top - 2, 1); /* call it */
652 }
653 if(nullptr != msg)
654 lua_set_run_error(L, msg);
655 luaD_throw(L, LUA_ERRRUN);
656}
657
658
659void luaG_runerror(lua_State *L, const char *fmt, ...) {

Callers 2

luaG_runerrorFunction · 0.85
lua_errorFunction · 0.85

Calls 3

luaD_callnoyieldFunction · 0.85
lua_set_run_errorFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected