mirror of
https://github.com/lua/lua.git
synced 2025-07-15 12:11:17 +00:00
traceback stops at first protected call
This commit is contained in:
parent
1dbe708aa8
commit
6ee2dbdfe9
5 changed files with 39 additions and 19 deletions
7
ldebug.c
7
ldebug.c
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ldebug.c,v 1.119 2002/06/13 13:39:55 roberto Exp roberto $
|
||||
** $Id: ldebug.c,v 1.120 2002/06/18 15:19:27 roberto Exp roberto $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -181,6 +181,7 @@ static void getname (lua_State *L, const TObject *f, lua_Debug *ar) {
|
|||
}
|
||||
|
||||
|
||||
|
||||
LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
|
||||
StkId f;
|
||||
CallInfo *ci;
|
||||
|
@ -220,6 +221,10 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
|
|||
status = 2;
|
||||
break;
|
||||
}
|
||||
case 'c': {
|
||||
ar->isprotected = (ci && luaD_isprotected(L, ci));
|
||||
break;
|
||||
}
|
||||
default: status = 0; /* invalid option */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue