aboutsummaryrefslogtreecommitdiffstats
path: root/lua/inet/bitops/init.lua
diff options
context:
space:
mode:
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))