summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-21 16:04:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-21 16:04:41 -0200
commit6c79a0a80d517354dcc19a1ef64569fba9b19365 (patch)
tree3e5bd168c460c32dc198ef06fbae4c4b917e7341 /lstate.h
parent3daeabb60667adc8d4b9c570631704548099a7bf (diff)
downloadlua-6c79a0a80d517354dcc19a1ef64569fba9b19365.tar.gz
lua-6c79a0a80d517354dcc19a1ef64569fba9b19365.tar.bz2
lua-6c79a0a80d517354dcc19a1ef64569fba9b19365.zip
new way to control hooks inside hooks (now the control is done inside Lua)
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lstate.h b/lstate.h
index cd4020be..8364dc45 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.24 1999/12/01 19:50:08 roberto Exp roberto $ 2** $Id: lstate.h,v 1.25 1999/12/06 11:41:28 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -62,9 +62,6 @@ struct lua_State {
62 int Mbuffnext; /* next position to fill in Mbuffer */ 62 int Mbuffnext; /* next position to fill in Mbuffer */
63 struct C_Lua_Stack *Cblocks; 63 struct C_Lua_Stack *Cblocks;
64 int numCblocks; /* number of nested Cblocks */ 64 int numCblocks; /* number of nested Cblocks */
65 int debug;
66 lua_CHFunction callhook;
67 lua_LHFunction linehook;
68 /* global state */ 65 /* global state */
69 TProtoFunc *rootproto; /* list of all prototypes */ 66 TProtoFunc *rootproto; /* list of all prototypes */
70 Closure *rootcl; /* list of all closures */ 67 Closure *rootcl; /* list of all closures */
@@ -78,6 +75,10 @@ struct lua_State {
78 int refFree; /* list of free positions in refArray */ 75 int refFree; /* list of free positions in refArray */
79 unsigned long GCthreshold; 76 unsigned long GCthreshold;
80 unsigned long nblocks; /* number of 'blocks' currently allocated */ 77 unsigned long nblocks; /* number of 'blocks' currently allocated */
78 int debug;
79 lua_CHFunction callhook;
80 lua_LHFunction linehook;
81 int allowhooks;
81}; 82};
82 83
83 84