| 148 | |
| 149 | |
| 150 | static void funcinfo (lua_Debug *ar, Closure *cl) { |
| 151 | if (cl->c.isC) { |
| 152 | ar->source = "=[C]"; |
| 153 | ar->linedefined = -1; |
| 154 | ar->lastlinedefined = -1; |
| 155 | ar->what = "C"; |
| 156 | } |
| 157 | else { |
| 158 | ar->source = getstr(cl->l.p->source); |
| 159 | ar->linedefined = cl->l.p->linedefined; |
| 160 | ar->lastlinedefined = cl->l.p->lastlinedefined; |
| 161 | ar->what = (ar->linedefined == 0) ? "main" : "Lua"; |
| 162 | } |
| 163 | luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE); |
| 164 | } |
| 165 | |
| 166 | |
| 167 | static void info_tailcall (lua_Debug *ar) { |
no test coverage detected