aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 23441062..4108aaae 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -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);