MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaG_errormsg

Function luaG_errormsg

3rd/lua-5.4.3/src/ldebug.c:765–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763
764
765l_noret luaG_errormsg (lua_State *L) {
766 if (L->errfunc != 0) { /* is there an error handling function? */
767 StkId errfunc = restorestack(L, L->errfunc);
768 lua_assert(ttisfunction(s2v(errfunc)));
769 setobjs2s(L, L->top, L->top - 1); /* move argument */
770 setobjs2s(L, L->top - 1, errfunc); /* push function */
771 L->top++; /* assume EXTRA_STACK */
772 luaD_callnoyield(L, L->top - 2, 1); /* call it */
773 }
774 luaD_throw(L, LUA_ERRRUN);
775}
776
777
778l_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