Browse Source

Loads the JIT library that way the JIT engine is enabled

tags/v1.3.0
Leonardo Laguna Ruiz Andrew Belt 5 years ago
parent
commit
95348ffaee
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/LuaJITEngine.cpp

+ 5
- 0
src/LuaJITEngine.cpp View File

@@ -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);
// Diables access to the JIT package
lua_pushnil(L);
lua_setglobal(L,"jit");

// Set user pointer
lua_pushlightuserdata(L, this);


Loading…
Cancel
Save