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

Function luaG_addinfo

third-party/lua-5.3.5/src/ldebug.c:628–637  ·  view source on GitHub ↗

add src:line information to 'msg' */

Source from the content-addressed store, hash-verified

626
627/* add src:line information to 'msg' */
628const char *luaG_addinfo (lua_State *L, const char *msg, TString *src,
629 int line) {
630 char buff[LUA_IDSIZE];
631 if (src)
632 luaO_chunkid(buff, getstr(src), LUA_IDSIZE);
633 else { /* no source available; use "?" instead */
634 buff[0] = '?'; buff[1] = '\0';
635 }
636 return luaO_pushfstring(L, "%s:%d: %s", buff, line, msg);
637}
638
639
640l_noret luaG_errormsg (lua_State *L) {

Callers 2

lexerrorFunction · 0.70
luaG_runerrorFunction · 0.70

Calls 2

luaO_chunkidFunction · 0.70
luaO_pushfstringFunction · 0.70

Tested by

no test coverage detected