1 2 3 4 5 6 7 8 9 10 11 12 13
local inspect = require "inspect" local noop = function() end local function get_version_record(i) local f = io.open("version", "w") f:write(inspect(i)) f:flush() f:close() return { requireModules = noop, registerMacro = noop, registerMacros = noop } end return get_version_record