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

Function funcinfo

third-party/lua-5.2.4/src/ldebug.c:193–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192
193static void funcinfo (lua_Debug *ar, Closure *cl) {
194 if (noLuaClosure(cl)) {
195 ar->source = "=[C]";
196 ar->linedefined = -1;
197 ar->lastlinedefined = -1;
198 ar->what = "C";
199 }
200 else {
201 Proto *p = cl->l.p;
202 ar->source = p->source ? getstr(p->source) : "=?";
203 ar->linedefined = p->linedefined;
204 ar->lastlinedefined = p->lastlinedefined;
205 ar->what = (ar->linedefined == 0) ? "main" : "Lua";
206 }
207 luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
208}
209
210
211static void collectvalidlines (lua_State *L, Closure *f) {

Callers 1

auxgetinfoFunction · 0.70

Calls 1

luaO_chunkidFunction · 0.70

Tested by

no test coverage detected