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