From cdf245a8d0f0cea8665e51946aee69052f798e3e Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 7 Dec 2009 01:54:21 +0100 Subject: Upgrading to LuaJIT 2.0.0-beta2 - changing the callwrap support. --- include/BLua.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/BLua.h b/include/BLua.h index 4fc9aa0..5d61dc1 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -69,6 +69,7 @@ class Lua : public Base { Lua(); Lua(const Lua &) throw (GeneralException); virtual ~Lua(); + typedef int (*lua_CallWrapper)(lua_State *, lua_CFunction); void open_base(); void open_table(); void open_io(bool safe = true); @@ -78,6 +79,7 @@ class Lua : public Base { void open_dir(); void open_bit(); void open_jit(); + void setcallwrap(lua_CallWrapper wrapper); int wrap_open(openlualib_t open) { int n = gettop(); int r = open(L); while (n < gettop()) remove(n);} void declarefunc(const String &, lua_CFunction, int = LUA_GLOBALSINDEX); void call(const String &, int = LUA_GLOBALSINDEX, int = 0, int = 0); -- cgit v1.2.3