From 39b2d58c39fd0cd554b27ed071926bc439338964 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 8 Jul 2002 15:21:33 -0300 Subject: new interface for debug hooks --- lstate.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 4a379e2c..4f3290ef 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.85 2002/05/08 17:34:23 roberto Exp roberto $ +** $Id: lstate.h,v 1.86 2002/07/02 16:43:28 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -130,8 +130,9 @@ struct lua_State { CallInfo *end_ci; /* points after end of ci array*/ CallInfo *base_ci; /* array of CallInfo's */ global_State *l_G; - lua_Hook linehook; - lua_Hook callhook; + int hookmask; + int hookcount; + lua_Hook hook; TObject globs[NUMGLOBS]; /* registry, table of globals, etc. */ struct lua_longjmp *errorJmp; /* current error recover point */ UpVal *openupval; /* list of open upvalues in this stack */ @@ -139,7 +140,6 @@ struct lua_State { lua_State *previous; int stacksize; int size_ci; /* size of array `base_ci' */ - int allowhooks; }; -- cgit v1.2.3-55-g6feb