diff options
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 | } |