diff options
Diffstat (limited to 'lib/lua/include')
-rw-r--r-- | lib/lua/include/lua.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lua/include/lua.h b/lib/lua/include/lua.h index 10496ec..9a28d9e 100644 --- a/lib/lua/include/lua.h +++ b/lib/lua/include/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.8 2004-12-27 22:18:52 pixel Exp $ +** $Id: lua.h,v 1.9 2006-02-09 16:59:55 pixel Exp $ ** Lua - An Extensible Extension Language ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil ** http://www.lua.org mailto:info@lua.org @@ -336,6 +336,7 @@ typedef struct lua_Debug lua_Debug; /* activation record */ typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); typedef int (*lua_CallWrap) (lua_State *L, lua_CFunction func); +typedef void (*lua_ThreadHook) (lua_State *L, lua_State *L1); LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar); @@ -351,6 +352,8 @@ LUA_API int lua_gethookmask (lua_State *L); LUA_API int lua_gethookcount (lua_State *L); LUA_API lua_CallWrap lua_setcallwrap (lua_State *L, lua_CallWrap func); +LUA_API lua_ThreadHook lua_setcreatehook (lua_State *L, lua_ThreadHook func); +LUA_API lua_ThreadHook lua_setdestroyhook (lua_State *L, lua_ThreadHook func); #define LUA_IDSIZE 60 |