aboutsummaryrefslogtreecommitdiff
path: root/luadebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'luadebug.h')
-rw-r--r--luadebug.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/luadebug.h b/luadebug.h
index 9c3820a0..09f2b1e4 100644
--- a/luadebug.h
+++ b/luadebug.h
@@ -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
14typedef struct lua_Dbgactreg lua_Dbgactreg; /* activation record */ 14typedef struct lua_Debug lua_Debug; /* activation record */
15typedef struct lua_Dbglocvar lua_Dbglocvar; /* local variable */ 15typedef struct lua_Localvar lua_Localvar;
16 16
17typedef void (*lua_Dbghook) (lua_State *L, lua_Dbgactreg *ar); 17typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar);
18 18
19 19
20int lua_getstack (lua_State *L, int level, lua_Dbgactreg *ar); 20int lua_getstack (lua_State *L, int level, lua_Debug *ar);
21int lua_getinfo (lua_State *L, const char *what, lua_Dbgactreg *ar); 21int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar);
22int lua_getlocal (lua_State *L, const lua_Dbgactreg *ar, lua_Dbglocvar *v); 22int lua_getlocal (lua_State *L, const lua_Debug *ar, lua_Localvar *v);
23int lua_setlocal (lua_State *L, const lua_Dbgactreg *ar, lua_Dbglocvar *v); 23int lua_setlocal (lua_State *L, const lua_Debug *ar, lua_Localvar *v);
24 24
25int lua_setdebug (lua_State *L, int debug); 25int lua_setdebug (lua_State *L, int debug);
26 26
27lua_Dbghook lua_setcallhook (lua_State *L, lua_Dbghook func); 27lua_Hook lua_setcallhook (lua_State *L, lua_Hook func);
28lua_Dbghook lua_setlinehook (lua_State *L, lua_Dbghook func); 28lua_Hook lua_setlinehook (lua_State *L, lua_Hook func);
29 29
30 30
31 31
32struct lua_Dbgactreg { 32struct 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
47struct lua_Dbglocvar { 47struct lua_Localvar {
48 int index; 48 int index;
49 const char *name; 49 const char *name;
50 lua_Object value; 50 lua_Object value;