diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-05 09:09:47 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-05 09:09:47 -0800 |
commit | d76fa54bb846140f0b7ed440a1bbf3015ed3a7f6 (patch) | |
tree | 1f72326e66ddd323563f905b96c1ed51d9f11b21 /include | |
parent | 41a6cc09743cd3bb304bc79a2e8c7b1c9d49ccfc (diff) |
Adding wrap_open, in order to be able to call third party lua libraries.
Diffstat (limited to 'include')
-rw-r--r-- | include/BLua.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/BLua.h b/include/BLua.h index 6fadeaf..4d53191 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -61,6 +61,8 @@ class LuaObject : public Base { bool wantdestruct, pushed; }; +typedef int (*openlualib_t)(lua_State * L); + //!Basic LUA engine. /*! This will create an LUA context, and provide mechanisms to interact with it. @@ -77,6 +79,7 @@ class Lua : public Base { void open_math(); void open_debug(); void open_dir(); + int wrap_open(openlualib_t); void declarefunc(const String &, lua_CFunction, int = LUA_GLOBALSINDEX); void call(const String &, int = LUA_GLOBALSINDEX, int = 0, int = 0); void call(int = 0, int = 0) throw (GeneralException); |