MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaG_runerror

Function luaG_runerror

lib/lua/src/ldebug.c:839–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837
838
839l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
840 CallInfo *ci = L->ci;
841 const char *msg;
842 va_list argp;
843 luaC_checkGC(L); /* error message uses memory */
844 va_start(argp, fmt);
845 msg = luaO_pushvfstring(L, fmt, argp); /* format message */
846 va_end(argp);
847 if (isLua(ci)) { /* if Lua function, add source:line information */
848 luaG_addinfo(L, msg, ci_func(ci)->p->source, getcurrentline(ci));
849 setobjs2s(L, L->top.p - 2, L->top.p - 1); /* remove 'msg' */
850 L->top.p--;
851 }
852 luaG_errormsg(L);
853}
854
855
856/*

Callers 15

forprepFunction · 0.85
luaV_finishgetFunction · 0.85
luaV_finishsetFunction · 0.85
luaV_concatFunction · 0.85
luaV_idivFunction · 0.85
luaV_modFunction · 0.85
luaM_growaux_Function · 0.85
luaM_toobigFunction · 0.85
luaE_checkcstackFunction · 0.85
luaO_pushvfstringFunction · 0.85
findindexFunction · 0.85
setnodevectorFunction · 0.85

Calls 4

luaO_pushvfstringFunction · 0.85
luaG_addinfoFunction · 0.85
getcurrentlineFunction · 0.85
luaG_errormsgFunction · 0.85

Tested by

no test coverage detected