MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaG_runerror

Function luaG_runerror

third-party/lua-5.5.0/src/ldebug.c:857–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855
856
857l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
858 CallInfo *ci = L->ci;
859 const char *msg;
860 va_list argp;
861 luaC_checkGC(L); /* error message uses memory */
862 pushvfstring(L, argp, fmt, msg);
863 if (isLua(ci)) { /* Lua function? */
864 /* add source:line information */
865 luaG_addinfo(L, msg, ci_func(ci)->p->source, getcurrentline(ci));
866 setobjs2s(L, L->top.p - 2, L->top.p - 1); /* remove 'msg' */
867 L->top.p--;
868 }
869 luaG_errormsg(L);
870}
871
872
873/*

Callers 15

forprepFunction · 0.70
luaV_finishgetFunction · 0.70
luaV_finishsetFunction · 0.70
luaV_concatFunction · 0.70
luaV_idivFunction · 0.70
luaV_modFunction · 0.70
luaM_growaux_Function · 0.70
luaM_toobigFunction · 0.70
luaE_checkcstackFunction · 0.70
getnumargsFunction · 0.70
findindexFunction · 0.70
setnodevectorFunction · 0.70

Calls 3

luaG_addinfoFunction · 0.70
getcurrentlineFunction · 0.70
luaG_errormsgFunction · 0.70

Tested by

no test coverage detected