Is it using LuaJIT or any another ffi library?
if ffi == nil then
ffi = require("ffi")
end
is suggestive. ffi = ffi or require("ffi")
If the ffi expression evaluates to something that is not nil, we keep the previous value of ffi. The assignment becomes a no-op.If it evaluates to a nil, we initialize it by calling require().