diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-21 16:04:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-21 16:04:41 -0200 |
commit | 6c79a0a80d517354dcc19a1ef64569fba9b19365 (patch) | |
tree | 3e5bd168c460c32dc198ef06fbae4c4b917e7341 /lstate.c | |
parent | 3daeabb60667adc8d4b9c570631704548099a7bf (diff) | |
download | lua-github-6c79a0a80d517354dcc19a1ef64569fba9b19365.tar.gz |
new way to control hooks inside hooks (now the control is done inside Lua)
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.21 1999/12/06 12:03:45 roberto Exp roberto $ +** $Id: lstate.c,v 1.22 1999/12/07 11:42:54 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -38,9 +38,6 @@ static lua_State *newstate_aux (int stacksize, int put_builtin) { L->Mbuffnext = 0; L->Cblocks = NULL; L->numCblocks = 0; - L->debug = 0; - L->callhook = NULL; - L->linehook = NULL; L->rootproto = NULL; L->rootcl = NULL; L->rootglobal = NULL; @@ -51,6 +48,10 @@ static lua_State *newstate_aux (int stacksize, int put_builtin) { L->refFree = NONEXT; L->nblocks = 0; L->GCthreshold = MAX_INT; /* to avoid GC during pre-definitions */ + L->debug = 0; + L->callhook = NULL; + L->linehook = NULL; + L->allowhooks = 1; luaD_init(L, stacksize); luaS_init(L); luaX_init(L); |