summaryrefslogtreecommitdiff
path: root/lib/BLua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/BLua.cc')
-rw-r--r--lib/BLua.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/BLua.cc b/lib/BLua.cc
index 7dbf6c1..8771406 100644
--- a/lib/BLua.cc
+++ b/lib/BLua.cc
@@ -21,6 +21,7 @@
#include "BLua.h"
#include "Buffer.h"
#include <lualib.h>
+#include <luajit.h"
#ifndef BUFFERSIZE
#define BUFFERSIZE 2048
@@ -644,6 +645,16 @@ void Lua::open_dir() {
lua_pop(L, 1);
}
+void Lua::open_jit() {
+ luaopen_jit(L);
+ lua_pop(L, 1);
+}
+
+void Lua::open_bit() {
+ luaopen_bit(L);
+ lua_pop(L, 1);
+}
+
int Lua::wrap_open(openlualib_t open) {
return open(L);
}