aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-18 09:01:55 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-18 09:01:55 -0200
commit43013b39cc28e873e18207e8e7259b6b90fed06b (patch)
tree3c2a9c520a01086df28c8f0d1ef6d9b5069fa451 /lua.h
parent94912d99fcdf61c1fc6dc8897c9d2b0e042e0d63 (diff)
downloadlua-43013b39cc28e873e18207e8e7259b6b90fed06b.tar.gz
lua-43013b39cc28e873e18207e8e7259b6b90fed06b.tar.bz2
lua-43013b39cc28e873e18207e8e7259b6b90fed06b.zip
new representation for hooks (to allow asynchronous calls to sethook)
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lua.h b/lua.h
index b36f975c..c3abafa7 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.163 2002/11/07 15:39:23 roberto Exp roberto $ 2** $Id: lua.h,v 1.164 2002/11/14 11:51:50 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil 4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
5** http://www.lua.org mailto:info@lua.org 5** http://www.lua.org mailto:info@lua.org
@@ -327,13 +327,13 @@ LUA_API int lua_pushupvalues (lua_State *L);
327/* 327/*
328** Event masks 328** Event masks
329*/ 329*/
330#define LUA_MASKCALL (2 << LUA_HOOKCALL) 330#define LUA_MASKCALL (1 << LUA_HOOKCALL)
331#define LUA_MASKRET (2 << LUA_HOOKRET) 331#define LUA_MASKRET (1 << LUA_HOOKRET)
332#define LUA_MASKLINE (2 << LUA_HOOKLINE) 332#define LUA_MASKLINE (1 << LUA_HOOKLINE)
333#define LUA_MASKCOUNT(count) ((unsigned long)(count) << 8) 333#define LUA_MASKCOUNT(count) ((unsigned long)(count) << 8)
334#define lua_getmaskcount(mask) ((mask) >> 8) 334#define lua_getmaskcount(mask) ((mask) >> 8)
335 335
336#define LUA_MAXCOUNT ((1<<24) - 1) 336#define LUA_MAXCOUNT ((~(unsigned long)0) >> 8)
337 337
338typedef struct lua_Debug lua_Debug; /* activation record */ 338typedef struct lua_Debug lua_Debug; /* activation record */
339 339