You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index b831689..ece7b70 100644
--- a/glfw.lua
+++ b/glfw.lua
@@ -29,7 +29,6 @@
]]
local ffi = require 'ffi'
-local jit = require 'jit'
local mod = {} -- Lua module namespace
local aux = {} -- Auxiliary utils
@@ -1042,9 +1041,12 @@ function bind_clib()
-- Luajit does not allow to call Lua-callbacks
-- from JIT-compiled C-functions, so we
-- manually turn off JIT for them
- jit.off(funcs.PollEvents)
- jit.off(funcs.WaitEvents)
- jit.off(funcs.WaitEventsTimeout)
+ pcall(function()
+ local jit = require 'jit'
+ jit.off(funcs.PollEvents)
+ jit.off(funcs.WaitEvents)
+ jit.off(funcs.WaitEventsTimeout)
+ end)
-----------------------------------------------------------
-- Extra functions
The text was updated successfully, but these errors were encountered:
It seems to me that a slight modification make this compatible with lua (not luaji) + ffifb (https://github.com/facebook/luaffifb):
The text was updated successfully, but these errors were encountered: