mirror of
https://github.com/lua/lua.git
synced 2025-07-12 10:50:51 +00:00
debug information for last line of a function definition
This commit is contained in:
parent
6cf85dcc90
commit
1ab2b93462
8 changed files with 24 additions and 16 deletions
5
ldebug.c
5
ldebug.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ldebug.c,v 2.15 2005/04/14 13:30:47 roberto Exp roberto $
|
||||
** $Id: ldebug.c,v 2.16 2005/05/04 20:42:28 roberto Exp roberto $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -157,7 +157,8 @@ static void funcinfo (lua_Debug *ar, StkId func) {
|
|||
}
|
||||
else {
|
||||
ar->source = getstr(cl->l.p->source);
|
||||
ar->linedefined = cl->l.p->lineDefined;
|
||||
ar->linedefined = cl->l.p->linedefined;
|
||||
ar->lastlinedefined = cl->l.p->lastlinedefined;
|
||||
ar->what = (ar->linedefined == 0) ? "main" : "Lua";
|
||||
}
|
||||
luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue