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

Function funcinfo

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

Source from the content-addressed store, hash-verified

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

Callers 1

auxgetinfoFunction · 0.70

Calls 1

luaO_chunkidFunction · 0.70

Tested by

no test coverage detected