MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / addinfo

Function addinfo

lua/ldebug.c:612–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaG_runerrorFunction · 0.85

Calls 5

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

Tested by

no test coverage detected