MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaG_addinfo

Function luaG_addinfo

src/Chain/libraries/glua/ldebug.cpp:633–642  ·  view source on GitHub ↗

add src:line information to 'msg' */

Source from the content-addressed store, hash-verified

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

Callers 2

luaG_runerrorFunction · 0.85
lexerrorFunction · 0.85

Calls 2

luaO_chunkidFunction · 0.85
luaO_pushfstringFunction · 0.85

Tested by

no test coverage detected