LuaComp/src/luacomp_vars.lua

19 lines
524 B
Lua
Raw Normal View History

2021-06-26 02:06:38 +10:00
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
2019-11-06 07:14:33 +11:00
local function _sv(k, v)
_G[k] = v
2019-12-15 08:23:07 +11:00
svar.set(k, v)
2019-11-06 07:14:33 +11:00
--os.setenv(k, tostring(v))
end
2021-06-25 19:31:33 +10:00
_sv("LUACOMP_V_MAJ", 2)
_sv("LUACOMP_V_MIN", 0)
2022-02-09 05:28:37 +11:00
_sv("LUACOMP_V_PAT", 4)
2019-11-06 07:14:33 +11:00
_sv("LUACOMP_VERSION", LUACOMP_V_MAJ.."."..LUACOMP_V_MIN.."."..LUACOMP_V_PAT)
2022-02-15 13:48:54 +11:00
_sv("LUACOMP_NAME", "LuaComp")
luacomp.experimental = {
relative_include = false
}