From 4710572bf3f2fb202d0cb3dda95ef28c85ea1b81 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 27 Dec 2004 22:18:52 +0000 Subject: adding C-closure wrapping to lua, and using it. --- lib/lua/include/lua.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/lua/include') 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 -- cgit v1.2.3