aboutsummaryrefslogtreecommitdiff
path: root/luadebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-18 14:10:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-18 14:10:43 -0300
commit6ee2dbdfe94e55cc098646df6aaee0483b5fff2c (patch)
treeaa100b536448ff9104314b59f1ef3d7875706aa1 /luadebug.h
parent1dbe708aa84f3a1e51daf8d7e2f714e2b02f554b (diff)
downloadlua-6ee2dbdfe94e55cc098646df6aaee0483b5fff2c.tar.gz
lua-6ee2dbdfe94e55cc098646df6aaee0483b5fff2c.tar.bz2
lua-6ee2dbdfe94e55cc098646df6aaee0483b5fff2c.zip
traceback stops at first protected call
Diffstat (limited to 'luadebug.h')
-rw-r--r--luadebug.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/luadebug.h b/luadebug.h
index 0836ba4a..c7ea3da4 100644
--- a/luadebug.h
+++ b/luadebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luadebug.h,v 1.26 2002/03/14 16:50:06 roberto Exp roberto $ 2** $Id: luadebug.h,v 1.27 2002/04/04 17:21:31 roberto Exp roberto $
3** Debugging API 3** Debugging API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -28,14 +28,15 @@ LUA_API lua_Hook lua_setlinehook (lua_State *L, lua_Hook func);
28#define LUA_IDSIZE 60 28#define LUA_IDSIZE 60
29 29
30struct lua_Debug { 30struct lua_Debug {
31 const char *event; /* `call', `return', `line' */ 31 const char *event; /* `call', `return', `line' */
32 const char *name; /* (n) */ 32 const char *name; /* (n) */
33 const char *namewhat; /* (n) `global', `local', `field', `method' */ 33 const char *namewhat; /* (n) `global', `local', `field', `method' */
34 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ 34 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */
35 const char *source; /* (S) */ 35 const char *source; /* (S) */
36 int currentline; /* (l) */ 36 int currentline; /* (l) */
37 int nups; /* (u) number of upvalues */ 37 int isprotected; /* (c) function was called in protected mode */
38 int linedefined; /* (S) */ 38 int nups; /* (u) number of upvalues */
39 int linedefined; /* (S) */
39 char short_src[LUA_IDSIZE]; /* (S) */ 40 char short_src[LUA_IDSIZE]; /* (S) */
40 /* private part */ 41 /* private part */
41 int i_ci; /* active function */ 42 int i_ci; /* active function */