MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaG_errormsg

Function luaG_errormsg

Source/Misc/lua/src/lua.c:5126–5136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5124
5125
5126void luaG_errormsg (lua_State *L) {
5127if (L->errfunc != 0) { /* is there an error handling function? */
5128StkId errfunc = restorestack(L, L->errfunc);
5129if (!ttisfunction(errfunc)) luaD_throw(L, LUA_ERRERR);
5130setobjs2s(L, L->top, L->top - 1); /* move argument */
5131setobjs2s(L, L->top - 1, errfunc); /* push function */
5132incr_top(L);
5133luaD_call(L, L->top - 2, 1); /* call it */
5134}
5135luaD_throw(L, LUA_ERRRUN);
5136}
5137
5138
5139void luaG_runerror (lua_State *L, const char *fmt, ...) {

Callers 2

lua_errorFunction · 0.85
luaG_runerrorFunction · 0.85

Calls 2

luaD_throwFunction · 0.85
luaD_callFunction · 0.85

Tested by

no test coverage detected