From 6c79a0a80d517354dcc19a1ef64569fba9b19365 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 21 Dec 1999 16:04:41 -0200 Subject: new way to control hooks inside hooks (now the control is done inside Lua) --- lstate.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index cd4020be..8364dc45 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.24 1999/12/01 19:50:08 roberto Exp roberto $ +** $Id: lstate.h,v 1.25 1999/12/06 11:41:28 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -62,9 +62,6 @@ struct lua_State { int Mbuffnext; /* next position to fill in Mbuffer */ struct C_Lua_Stack *Cblocks; int numCblocks; /* number of nested Cblocks */ - int debug; - lua_CHFunction callhook; - lua_LHFunction linehook; /* global state */ TProtoFunc *rootproto; /* list of all prototypes */ Closure *rootcl; /* list of all closures */ @@ -78,6 +75,10 @@ struct lua_State { int refFree; /* list of free positions in refArray */ unsigned long GCthreshold; unsigned long nblocks; /* number of 'blocks' currently allocated */ + int debug; + lua_CHFunction callhook; + lua_LHFunction linehook; + int allowhooks; }; -- cgit v1.2.3-55-g6feb