From 43013b39cc28e873e18207e8e7259b6b90fed06b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 18 Nov 2002 09:01:55 -0200 Subject: new representation for hooks (to allow asynchronous calls to sethook) --- lua.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index b36f975c..c3abafa7 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.163 2002/11/07 15:39:23 roberto Exp roberto $ +** $Id: lua.h,v 1.164 2002/11/14 11:51:50 roberto Exp roberto $ ** Lua - An Extensible Extension Language ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil ** http://www.lua.org mailto:info@lua.org @@ -327,13 +327,13 @@ LUA_API int lua_pushupvalues (lua_State *L); /* ** Event masks */ -#define LUA_MASKCALL (2 << LUA_HOOKCALL) -#define LUA_MASKRET (2 << LUA_HOOKRET) -#define LUA_MASKLINE (2 << LUA_HOOKLINE) +#define LUA_MASKCALL (1 << LUA_HOOKCALL) +#define LUA_MASKRET (1 << LUA_HOOKRET) +#define LUA_MASKLINE (1 << LUA_HOOKLINE) #define LUA_MASKCOUNT(count) ((unsigned long)(count) << 8) #define lua_getmaskcount(mask) ((mask) >> 8) -#define LUA_MAXCOUNT ((1<<24) - 1) +#define LUA_MAXCOUNT ((~(unsigned long)0) >> 8) typedef struct lua_Debug lua_Debug; /* activation record */ -- cgit v1.2.3-55-g6feb