From 568794956025183fc9a9b79e0c818a885e3d0aeb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 4 Feb 1999 15:47:59 -0200 Subject: "lua_debug", "lua_callhook" and "lua_linehook" must be inside "lua_state". --- lstate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 8547c176..88c7b473 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.6 1998/06/02 20:37:04 roberto Exp roberto $ +** $Id: lstate.c,v 1.7 1999/01/15 13:11:22 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -29,6 +29,9 @@ void lua_open (void) L->Cstack.lua2C = 0; L->Cstack.num = 0; L->errorJmp = NULL; + L->debug = 0; + L->callhook = NULL; + L->linehook = NULL; L->rootproto.next = NULL; L->rootproto.marked = 0; L->rootcl.next = NULL; -- cgit v1.2.3-55-g6feb