MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / funcinfo

Function funcinfo

Source/Misc/lua/src/lua.c:4658–4672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4656
4657
4658static void funcinfo (lua_Debug *ar, Closure *cl) {
4659if (cl->c.isC) {
4660ar->source = "=[C]";
4661ar->linedefined = -1;
4662ar->lastlinedefined = -1;
4663ar->what = "C";
4664}
4665else {
4666ar->source = getstr(cl->l.p->source);
4667ar->linedefined = cl->l.p->linedefined;
4668ar->lastlinedefined = cl->l.p->lastlinedefined;
4669ar->what = (ar->linedefined == 0) ? "main" : "Lua";
4670}
4671luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
4672}
4673
4674
4675static void info_tailcall (lua_Debug *ar) {

Callers 1

auxgetinfoFunction · 0.85

Calls 1

luaO_chunkidFunction · 0.85

Tested by

no test coverage detected