diff options
Diffstat (limited to 'otfl-basics-gen.lua')
-rw-r--r-- | otfl-basics-gen.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/otfl-basics-gen.lua b/otfl-basics-gen.lua index bfd81fd..9a328d0 100644 --- a/otfl-basics-gen.lua +++ b/otfl-basics-gen.lua @@ -254,7 +254,8 @@ function caches.compile(data,luaname,lucname) if d and d ~= "" then local f = io.open(lucname,'w') if f then - local s = loadstring(d) + local s + if _G["loadstring"] then s=loadstring(d) else s=load(d) end f:write(string.dump(s)) f:close() end |