diff options
Diffstat (limited to 'luadebug.h')
-rw-r--r-- | luadebug.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luadebug.h,v 1.12 2000/08/11 16:17:28 roberto Exp roberto $ | 2 | ** $Id: luadebug.h,v 1.13 2000/08/28 17:57:04 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 | */ |
@@ -26,16 +26,18 @@ lua_Hook lua_setcallhook (lua_State *L, lua_Hook func); | |||
26 | lua_Hook lua_setlinehook (lua_State *L, lua_Hook func); | 26 | lua_Hook lua_setlinehook (lua_State *L, lua_Hook func); |
27 | 27 | ||
28 | 28 | ||
29 | #define LUA_IDSIZE 60 | ||
29 | 30 | ||
30 | struct lua_Debug { | 31 | struct lua_Debug { |
31 | const char *event; /* `call', `return' */ | 32 | const char *event; /* `call', `return' */ |
32 | const char *source; /* (S) */ | ||
33 | int linedefined; /* (S) */ | ||
34 | const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ | ||
35 | int currentline; /* (l) */ | 33 | int currentline; /* (l) */ |
36 | const char *name; /* (n) */ | 34 | const char *name; /* (n) */ |
37 | const char *namewhat; /* (n) `global', `tag method', `local', `field' */ | 35 | const char *namewhat; /* (n) `global', `tag method', `local', `field' */ |
38 | int nups; /* (u) number of upvalues */ | 36 | int nups; /* (u) number of upvalues */ |
37 | int linedefined; /* (S) */ | ||
38 | const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ | ||
39 | const char *source; /* (S) */ | ||
40 | char source_id[LUA_IDSIZE]; /* (S) */ | ||
39 | /* private part */ | 41 | /* private part */ |
40 | struct lua_TObject *_func; /* active function */ | 42 | struct lua_TObject *_func; /* active function */ |
41 | }; | 43 | }; |