Skip to content

Commit 8ed36ae

Browse files
committed
Export bit and FFI to script engine
Thanks to ForserX
1 parent 20032e9 commit 8ed36ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xrScriptEngine/script_engine.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,8 @@ void CScriptEngine::init(ExporterFunc exporterFunc, bool loadGlobalNamespace)
961961
luajit::open_lib(lua(), LUA_OSLIBNAME, luaopen_os);
962962
luajit::open_lib(lua(), LUA_MATHLIBNAME, luaopen_math);
963963
luajit::open_lib(lua(), LUA_STRLIBNAME, luaopen_string);
964+
luajit::open_lib(lua(), LUA_BITLIBNAME, luaopen_bit);
965+
luajit::open_lib(lua(), LUA_FFILIBNAME, luaopen_ffi);
964966
#ifdef DEBUG
965967
luajit::open_lib(lua(), LUA_DBLIBNAME, luaopen_debug);
966968
#endif

0 commit comments

Comments
 (0)