diff options
Diffstat (limited to 'luadebug.h')
-rw-r--r-- | luadebug.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luadebug.h,v 1.8 1999/11/22 13:12:07 roberto Exp roberto $ | 2 | ** $Id: luadebug.h,v 1.9 2000/01/19 12:00:45 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 | */ |
@@ -11,25 +11,25 @@ | |||
11 | 11 | ||
12 | #include "lua.h" | 12 | #include "lua.h" |
13 | 13 | ||
14 | typedef struct lua_Dbgactreg lua_Dbgactreg; /* activation record */ | 14 | typedef struct lua_Debug lua_Debug; /* activation record */ |
15 | typedef struct lua_Dbglocvar lua_Dbglocvar; /* local variable */ | 15 | typedef struct lua_Localvar lua_Localvar; |
16 | 16 | ||
17 | typedef void (*lua_Dbghook) (lua_State *L, lua_Dbgactreg *ar); | 17 | typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); |
18 | 18 | ||
19 | 19 | ||
20 | int lua_getstack (lua_State *L, int level, lua_Dbgactreg *ar); | 20 | int lua_getstack (lua_State *L, int level, lua_Debug *ar); |
21 | int lua_getinfo (lua_State *L, const char *what, lua_Dbgactreg *ar); | 21 | int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar); |
22 | int lua_getlocal (lua_State *L, const lua_Dbgactreg *ar, lua_Dbglocvar *v); | 22 | int lua_getlocal (lua_State *L, const lua_Debug *ar, lua_Localvar *v); |
23 | int lua_setlocal (lua_State *L, const lua_Dbgactreg *ar, lua_Dbglocvar *v); | 23 | int lua_setlocal (lua_State *L, const lua_Debug *ar, lua_Localvar *v); |
24 | 24 | ||
25 | int lua_setdebug (lua_State *L, int debug); | 25 | int lua_setdebug (lua_State *L, int debug); |
26 | 26 | ||
27 | lua_Dbghook lua_setcallhook (lua_State *L, lua_Dbghook func); | 27 | lua_Hook lua_setcallhook (lua_State *L, lua_Hook func); |
28 | lua_Dbghook lua_setlinehook (lua_State *L, lua_Dbghook func); | 28 | lua_Hook lua_setlinehook (lua_State *L, lua_Hook func); |
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | struct lua_Dbgactreg { | 32 | struct lua_Debug { |
33 | const char *event; /* `call', `return' */ | 33 | const char *event; /* `call', `return' */ |
34 | const char *source; /* (S) */ | 34 | const char *source; /* (S) */ |
35 | int linedefined; /* (S) */ | 35 | int linedefined; /* (S) */ |
@@ -44,7 +44,7 @@ struct lua_Dbgactreg { | |||
44 | }; | 44 | }; |
45 | 45 | ||
46 | 46 | ||
47 | struct lua_Dbglocvar { | 47 | struct lua_Localvar { |
48 | int index; | 48 | int index; |
49 | const char *name; | 49 | const char *name; |
50 | lua_Object value; | 50 | lua_Object value; |