aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-04 15:47:59 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-04 15:47:59 -0200
commit568794956025183fc9a9b79e0c818a885e3d0aeb (patch)
tree02d1a74d7c9a16ca06e94ab4308694ad04f49012 /lstate.c
parent19de5b22054f6da2c3e0eb3138cc7a1195aab4fd (diff)
downloadlua-568794956025183fc9a9b79e0c818a885e3d0aeb.tar.gz
lua-568794956025183fc9a9b79e0c818a885e3d0aeb.tar.bz2
lua-568794956025183fc9a9b79e0c818a885e3d0aeb.zip
"lua_debug", "lua_callhook" and "lua_linehook" must be inside "lua_state".
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 8547c176..88c7b473 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.6 1998/06/02 20:37:04 roberto Exp roberto $ 2** $Id: lstate.c,v 1.7 1999/01/15 13:11:22 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*/
@@ -29,6 +29,9 @@ void lua_open (void)
29 L->Cstack.lua2C = 0; 29 L->Cstack.lua2C = 0;
30 L->Cstack.num = 0; 30 L->Cstack.num = 0;
31 L->errorJmp = NULL; 31 L->errorJmp = NULL;
32 L->debug = 0;
33 L->callhook = NULL;
34 L->linehook = NULL;
32 L->rootproto.next = NULL; 35 L->rootproto.next = NULL;
33 L->rootproto.marked = 0; 36 L->rootproto.marked = 0;
34 L->rootcl.next = NULL; 37 L->rootcl.next = NULL;