File size: 217 Bytes
d7c5875
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
local has_bit32,bit = pcall(require,'bit32')
if has_bit32 then
  -- lua 5.2 / bit32 library
  bit.rol = bit.lrotate
  bit.ror = bit.rrotate
  return bit
else
  -- luajit / lua 5.1 + luabitop
  return require'bit'
end