diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-02 17:15:08 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-02 17:15:08 +0100 |
commit | 62676780b4363d25d7a247f39484b1e4a34ef7b7 (patch) | |
tree | 8678e13eee0b805e7c972b9885f21b9747493ee4 /tex/context/base/mkiv/l-lua.lua | |
parent | 2a958dcf22dd71ba1e4408648676d44c16d7e3bf (diff) | |
download | context-62676780b4363d25d7a247f39484b1e4a34ef7b7.tar.gz |
2016-03-02 16:58:00
Diffstat (limited to 'tex/context/base/mkiv/l-lua.lua')
-rw-r--r-- | tex/context/base/mkiv/l-lua.lua | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/l-lua.lua b/tex/context/base/mkiv/l-lua.lua index cb6182907..b90f37e3d 100644 --- a/tex/context/base/mkiv/l-lua.lua +++ b/tex/context/base/mkiv/l-lua.lua @@ -19,12 +19,20 @@ if not modules then modules = { } end modules ['l-lua'] = { -- compatibility hacksand helpers -local major, minor = string.match(_VERSION,"^[^%d]+(%d+)%.(%d+).*$") +_MAJORVERSION, _MINORVERSION = string.match(_VERSION,"^[^%d]+(%d+)%.(%d+).*$") -_MAJORVERSION = tonumber(major) or 5 -_MINORVERSION = tonumber(minor) or 1 +_MAJORVERSION = tonumber(_MAJORVERSION) or 5 +_MINORVERSION = tonumber(_MINORVERSION) or 1 _LUAVERSION = _MAJORVERSION + _MINORVERSION/10 +if _LUAVERSION < 5.2 and jit then + -- + -- we want loadstring cum suis to behave like 5.2 + -- + _MINORVERSION = 2 + _LUAVERSION = 5.2 +end + -- lpeg if not lpeg then |