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') }