diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-18 14:10:43 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-18 14:10:43 -0300 |
commit | 6ee2dbdfe94e55cc098646df6aaee0483b5fff2c (patch) | |
tree | aa100b536448ff9104314b59f1ef3d7875706aa1 /ldebug.c | |
parent | 1dbe708aa84f3a1e51daf8d7e2f714e2b02f554b (diff) | |
download | lua-6ee2dbdfe94e55cc098646df6aaee0483b5fff2c.tar.gz lua-6ee2dbdfe94e55cc098646df6aaee0483b5fff2c.tar.bz2 lua-6ee2dbdfe94e55cc098646df6aaee0483b5fff2c.zip |
traceback stops at first protected call
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.119 2002/06/13 13:39:55 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.120 2002/06/18 15:19:27 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 | */ |
@@ -181,6 +181,7 @@ static void getname (lua_State *L, const TObject *f, lua_Debug *ar) { | |||
181 | } | 181 | } |
182 | 182 | ||
183 | 183 | ||
184 | |||
184 | LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { | 185 | LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { |
185 | StkId f; | 186 | StkId f; |
186 | CallInfo *ci; | 187 | CallInfo *ci; |
@@ -220,6 +221,10 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { | |||
220 | status = 2; | 221 | status = 2; |
221 | break; | 222 | break; |
222 | } | 223 | } |
224 | case 'c': { | ||
225 | ar->isprotected = (ci && luaD_isprotected(L, ci)); | ||
226 | break; | ||
227 | } | ||
223 | default: status = 0; /* invalid option */ | 228 | default: status = 0; /* invalid option */ |
224 | } | 229 | } |
225 | } | 230 | } |