You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lua-lib/websocket/bit.lua

10 lines
217 B

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