Mercurial > prosody-hg
comparison util/bitcompat.lua @ 12975:d10957394a3c
util: Prefix module imports with prosody namespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 17 Mar 2023 16:23:16 +0100 |
| parents | 0f4feaf9ca64 |
| children | de902cc0d46c |
comparison
equal
deleted
inserted
replaced
| 12974:ba409c67353b | 12975:d10957394a3c |
|---|---|
| 7 return _G.bit32; | 7 return _G.bit32; |
| 8 end | 8 end |
| 9 | 9 |
| 10 do | 10 do |
| 11 -- Lua 5.3 and 5.4 would be able to use native infix operators | 11 -- Lua 5.3 and 5.4 would be able to use native infix operators |
| 12 local ok, bitop = pcall(require, "util.bit53") | 12 local ok, bitop = pcall(require, "prosody.util.bit53") |
| 13 if ok then | 13 if ok then |
| 14 return bitop; | 14 return bitop; |
| 15 end | 15 end |
| 16 end | 16 end |
| 17 | 17 |
