MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addinfo

Function addinfo

deps/lua/src/ldebug.c:607–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605
606
607static void addinfo (lua_State *L, const char *msg) {
608 CallInfo *ci = L->ci;
609 if (isLua(ci)) { /* is Lua code? */
610 char buff[LUA_IDSIZE]; /* add file:line information */
611 int line = currentline(L, ci);
612 luaO_chunkid(buff, getstr(getluaproto(ci)->source), LUA_IDSIZE);
613 luaO_pushfstring(L, "%s:%d: %s", buff, line, msg);
614 }
615}
616
617
618void luaG_errormsg (lua_State *L) {

Callers 1

luaG_runerrorFunction · 0.85

Calls 4

currentlineFunction · 0.85
luaO_chunkidFunction · 0.85
getluaprotoFunction · 0.85
luaO_pushfstringFunction · 0.85

Tested by

no test coverage detected