Skip to content

Commit 4706f1b

Browse files
Load LuaJIT BitOp library/module.
Makes it so that scripts are allowed to access and use the Bitwise operations module that is bundled with LuaJIT. See here for info about the functions provided by this: https://bitop.luajit.org/api.html
1 parent 7b9a8c2 commit 4706f1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Managers/LuaMan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void LuaStateWrapper::Initialize() {
4444
{LUA_STRLIBNAME, luaopen_string},
4545
{LUA_MATHLIBNAME, luaopen_math},
4646
{LUA_DBLIBNAME, luaopen_debug},
47+
{LUA_BITLIBNAME, luaopen_bit},
4748
{LUA_JITLIBNAME, luaopen_jit},
4849
{NULL, NULL} // End of array
4950
};

0 commit comments

Comments
 (0)