MCPcopy Create free account
hub / github.com/F-Stack/f-stack / addinfo

Function addinfo

freebsd/contrib/openzfs/module/lua/ldebug.c:571–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570
571static void addinfo (lua_State *L, const char *msg) {
572 CallInfo *ci = L->ci;
573 if (isLua(ci)) { /* is Lua code? */
574 char buff[LUA_IDSIZE]; /* add file:line information */
575 int line = currentline(ci);
576 TString *src = ci_func(ci)->p->source;
577 if (src)
578 luaO_chunkid(buff, getstr(src), LUA_IDSIZE);
579 else { /* no source available; use "?" instead */
580 buff[0] = '?'; buff[1] = '\0';
581 }
582 luaO_pushfstring(L, "%s:%d: %s", buff, line, msg);
583 }
584}
585
586
587l_noret luaG_errormsg (lua_State *L) {

Callers 1

luaG_runerrorFunction · 0.70

Calls 3

currentlineFunction · 0.70
luaO_chunkidFunction · 0.70
luaO_pushfstringFunction · 0.70

Tested by

no test coverage detected