diff options
author | Ronan Collobert <locronan@fb.com> | 2016-08-29 20:20:22 +0300 |
---|---|---|
committer | Ronan Collobert <locronan@fb.com> | 2016-08-29 20:20:22 +0300 |
commit | 17ea705429f818cd9b290c0879b577607bc6e871 (patch) | |
tree | f541d165a36cb615fb843ec236e2b95e14164aca | |
parent | 8353f5a53c94f15b88d89770512247e915534517 (diff) |
support bit32 (lua 5.2)
-rw-r--r-- | ascii.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,13 @@ local sundown = require 'sundown.env' local C = sundown.C local ffi = require 'ffi' -local bit = require 'bit' +local bit + +if _VERSION == 'Lua 5.2' or _VERSION == 'Lua 5.3' then + bit = require 'bit32' +else + bit = require 'bit' +end require 'sundown.sdcdefs' |