summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-18 11:09:54 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-18 11:09:54 +0200
commitf7e42e3811d7e528d0487acdb33524595a31c947 (patch)
treeddf9794c5270d4b6bccf16e75274ac2410fa8415
parentca3df8adefc6534fa1de20cf0794b7af9af455c6 (diff)
downloadluaotfload-f7e42e3811d7e528d0487acdb33524595a31c947.tar.gz
add fallback for older luatexbase
-rw-r--r--luaotfload-extralibs.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/luaotfload-extralibs.lua b/luaotfload-extralibs.lua
index 2236631..618808f 100644
--- a/luaotfload-extralibs.lua
+++ b/luaotfload-extralibs.lua
@@ -230,7 +230,12 @@ attributes.private = attributes.private or function (attr_name)
return res
end
-attributes.unsetvalue = luatexbase.get_unset_value()
+if luatexbase.get_unset_value then
+ attributes.unsetvalue = luatexbase.get_unset_value()
+else -- old luatexbase
+ attributes.unsetvalue = (luatexbase.luatexversion < 37) and -1
+ or -2147483647
+end
-----------------------------------------------------------------------
--- luat-sto