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

Function funcinfo

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

Source from the content-addressed store, hash-verified

232
233
234static void funcinfo(lua_Debug *ar, Closure *cl) {
235 if (noLuaClosure(cl)) {
236 ar->source = "=[C]";
237 ar->linedefined = -1;
238 ar->lastlinedefined = -1;
239 ar->what = "C";
240 }
241 else {
242 Proto *p = cl->l.p;
243 ar->source = p->source ? getstr(p->source) : "=?";
244 ar->linedefined = p->linedefined;
245 ar->lastlinedefined = p->lastlinedefined;
246 ar->what = (ar->linedefined == 0) ? "main" : "Lua";
247 }
248 luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
249}
250
251
252static void collectvalidlines(lua_State *L, Closure *f) {

Callers 1

auxgetinfoFunction · 0.85

Calls 1

luaO_chunkidFunction · 0.85

Tested by

no test coverage detected