summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-05 09:09:47 -0800
committerPixel <pixel@nobis-crew.org>2009-11-05 09:09:47 -0800
commitd76fa54bb846140f0b7ed440a1bbf3015ed3a7f6 (patch)
tree1f72326e66ddd323563f905b96c1ed51d9f11b21 /lib
parent41a6cc09743cd3bb304bc79a2e8c7b1c9d49ccfc (diff)
Adding wrap_open, in order to be able to call third party lua libraries.
Diffstat (limited to 'lib')
-rw-r--r--lib/BLua.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/BLua.cc b/lib/BLua.cc
index 9bd7828..6494211 100644
--- a/lib/BLua.cc
+++ b/lib/BLua.cc
@@ -638,6 +638,10 @@ void Lua::open_dir() {
lua_pop(L, 1);
}
+int Lua::wrap_open(openlualib_t open) {
+ return open(L);
+}
+
void Lua::declarefunc(const String & name, lua_CFunction f, int i) {
lua_pushstring(L, name.to_charp());
lua_pushcfunction(L, f);