diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-25 15:52:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-25 15:52:50 -0800 |
| commit | bdddfd42ba917d62c28099b954f1a34b6e7df2ba (patch) | |
| tree | 4c13f5528444e053ee2a87e750efc2885673fe98 | |
| parent | cf3e35f7f0cedb635e4d0d2ca8e46fd7cd0d9c77 (diff) | |
Added backwards compatibility for "Lua version" (temporary).
| -rw-r--r-- | bootstrap.lua | 3 | ||||
| -rw-r--r-- | bootstrap.moon | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap.lua b/bootstrap.lua index 31b03fc..2c5c83e 100644 --- a/bootstrap.lua +++ b/bootstrap.lua @@ -130,6 +130,9 @@ local compile_actions = { ["nomsu environment name"] = function(self, _t) return LuaCode('"_ENV"') end, + ["Lua version"] = function(self, _t) + return LuaCode("LUA_API") + end, ["this file was run directly"] = function(self, _t) return LuaCode('WAS_RUN_DIRECTLY') end, diff --git a/bootstrap.moon b/bootstrap.moon index 6413205..38ba459 100644 --- a/bootstrap.moon +++ b/bootstrap.moon @@ -100,6 +100,7 @@ compile_actions = { ["is jit"]: (_t, code)=> LuaCode("jit") ["nomsu environment"]: (_t)=> LuaCode("_ENV") ["nomsu environment name"]: (_t)=> LuaCode('"_ENV"') + ["Lua version"]: (_t)=> LuaCode("LUA_API") ["this file was run directly"]: (_t)=> LuaCode('WAS_RUN_DIRECTLY') ["the command line arguments"]: (_t)=> LuaCode('COMMAND_LINE_ARGS') } |
