diff --git a/src/LuaJITEngine.cpp b/src/LuaJITEngine.cpp index 1d8d523..ee39157 100644 --- a/src/LuaJITEngine.cpp +++ b/src/LuaJITEngine.cpp @@ -34,6 +34,11 @@ struct LuaJITEngine : ScriptEngine { luaopen_table(L); luaopen_math(L); luaopen_bit(L); + // Loads the JIT package otherwise it will be off + luaopen_jit(L); + // Disables access to the JIT package + lua_pushnil(L); + lua_setglobal(L,"jit"); // Set user pointer lua_pushlightuserdata(L, this);