MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaG_runerror

Function luaG_runerror

depends/lua/src/ldebug.c:653–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651
652
653l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
654 CallInfo *ci = L->ci;
655 const char *msg;
656 va_list argp;
657 luaC_checkGC(L); /* error message uses memory */
658 va_start(argp, fmt);
659 msg = luaO_pushvfstring(L, fmt, argp); /* format message */
660 va_end(argp);
661 if (isLua(ci)) /* if Lua function, add source:line information */
662 luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci));
663 luaG_errormsg(L);
664}
665
666
667void luaG_traceexec (lua_State *L) {

Callers 15

luaV_finishgetFunction · 0.85
luaV_finishsetFunction · 0.85
luaV_concatFunction · 0.85
luaV_divFunction · 0.85
luaV_modFunction · 0.85
luaV_executeFunction · 0.85
luaM_growaux_Function · 0.85
luaM_toobigFunction · 0.85
luaO_pushvfstringFunction · 0.85
findindexFunction · 0.85
setnodevectorFunction · 0.85
luaH_newkeyFunction · 0.85

Calls 4

luaO_pushvfstringFunction · 0.85
luaG_addinfoFunction · 0.85
currentlineFunction · 0.85
luaG_errormsgFunction · 0.85

Tested by

no test coverage detected