aboutsummaryrefslogtreecommitdiffstats
path: root/lua/inet/bitops/init.lua
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2019-07-28 21:28:21 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2019-07-28 21:28:21 +0000
commit9c31bbc8cfd2ea8cfe2740c47c045e1773725315 (patch)
treed6616b441ac1fdcb4785b1dc727bf1e3f105baf9 /lua/inet/bitops/init.lua
parentde97a7a8473f68eff527c1ec6fb2482ba3d31523 (diff)
downloadlua-inet-9c31bbc8cfd2ea8cfe2740c47c045e1773725315.tar.gz
lua-inet-9c31bbc8cfd2ea8cfe2740c47c045e1773725315.tar.xz
lua-inet-9c31bbc8cfd2ea8cfe2740c47c045e1773725315.zip
add support for lua 5.4 alpha
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
Diffstat (limited to 'lua/inet/bitops/init.lua')
-rw-r--r--lua/inet/bitops/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/inet/bitops/init.lua b/lua/inet/bitops/init.lua
new file mode 100644
index 0000000..6af992b
--- /dev/null
+++ b/lua/inet/bitops/init.lua
@@ -0,0 +1,6 @@
+local versions = {
+ ['Lua 5.2'] = 'bit32',
+}
+
+local library = versions[_VERSION] or 'inet.bitops.native'
+return assert(require(library))