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.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 16693604..b8d15a6c 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.12 1998/08/21 17:43:44 roberto Exp roberto $ +** $Id: lstate.h,v 1.13 1998/08/30 18:28:58 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -11,6 +11,7 @@ #include "lobject.h" #include "lua.h" +#include "luadebug.h" #define MAX_C_BLOCKS 10 @@ -60,6 +61,9 @@ struct lua_State { int Mbuffnext; /* next position to fill in Mbuffer */ struct C_Lua_Stack Cblocks[MAX_C_BLOCKS]; int numCblocks; /* number of nested Cblocks */ + int debug; + lua_CHFunction callhook; + lua_LHFunction linehook; /* global state */ GCnode rootproto; /* list of all prototypes */ GCnode rootcl; /* list of all closures */ @@ -80,3 +84,4 @@ struct lua_State { #endif + -- cgit v1.2.3-55-g6feb