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

Function funcinfo

third-party/lua-5.3.5/src/ldebug.c:211–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211static void funcinfo (lua_Debug *ar, Closure *cl) {
212 if (noLuaClosure(cl)) {
213 ar->source = "=[C]";
214 ar->linedefined = -1;
215 ar->lastlinedefined = -1;
216 ar->what = "C";
217 }
218 else {
219 Proto *p = cl->l.p;
220 ar->source = p->source ? getstr(p->source) : "=?";
221 ar->linedefined = p->linedefined;
222 ar->lastlinedefined = p->lastlinedefined;
223 ar->what = (ar->linedefined == 0) ? "main" : "Lua";
224 }
225 luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
226}
227
228
229static void collectvalidlines (lua_State *L, Closure *f) {

Callers 1

auxgetinfoFunction · 0.70

Calls 1

luaO_chunkidFunction · 0.70

Tested by

no test coverage detected