diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.15 2005/04/14 13:30:47 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.16 2005/05/04 20:42:28 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -157,7 +157,8 @@ static void funcinfo (lua_Debug *ar, StkId func) { | |||
157 | } | 157 | } |
158 | else { | 158 | else { |
159 | ar->source = getstr(cl->l.p->source); | 159 | ar->source = getstr(cl->l.p->source); |
160 | ar->linedefined = cl->l.p->lineDefined; | 160 | ar->linedefined = cl->l.p->linedefined; |
161 | ar->lastlinedefined = cl->l.p->lastlinedefined; | ||
161 | ar->what = (ar->linedefined == 0) ? "main" : "Lua"; | 162 | ar->what = (ar->linedefined == 0) ? "main" : "Lua"; |
162 | } | 163 | } |
163 | luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE); | 164 | luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE); |