diff options
author | pixel <pixel> | 2004-12-27 22:18:52 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-12-27 22:18:52 +0000 |
commit | 4710572bf3f2fb202d0cb3dda95ef28c85ea1b81 (patch) | |
tree | badd157b2b2c3f18553c793f49f1294dc0637372 /lib/lua/include | |
parent | ecb5155dfed400c50b3b54a758d546b7754bcbf1 (diff) |
adding C-closure wrapping to lua, and using it.
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 2540709..10496ec 100644 --- a/lib/lua/include/lua.h +++ b/lib/lua/include/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.7 2004-12-27 19:52:23 pixel Exp $ +** $Id: lua.h,v 1.8 2004-12-27 22:18:52 pixel Exp $ ** Lua - An Extensible Extension Language ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil ** http://www.lua.org mailto:info@lua.org @@ -335,6 +335,7 @@ LUA_API int lua_pushupvalues (lua_State *L); 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); LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar); @@ -349,6 +350,8 @@ LUA_API lua_Hook lua_gethook (lua_State *L); 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); + #define LUA_IDSIZE 60 |