diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-07 01:54:21 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-07 01:54:21 +0100 |
commit | cdf245a8d0f0cea8665e51946aee69052f798e3e (patch) | |
tree | 22ceadf90521285369b4682441153cc9660020d2 /include | |
parent | d72f9e9e236cb35faf6ee22527fa9bf6508e46dc (diff) |
Upgrading to LuaJIT 2.0.0-beta2 - changing the callwrap support.
Diffstat (limited to 'include')
-rw-r--r-- | include/BLua.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |