Comparison

util/gc.lua @ 11431:4874b54af344

util.gc: Fix check for Lua 5.4
author Kim Alvefur <zash@zash.se>
date Tue, 16 Mar 2021 00:04:26 +0100
parent 10935:2d57c49bfa12
child 12975:d10957394a3c
comparison
equal deleted inserted replaced
11430:56a282ecdcf1 11431:4874b54af344
3 local known_options = { 3 local known_options = {
4 incremental = set.new { "mode", "threshold", "speed", "step_size" }; 4 incremental = set.new { "mode", "threshold", "speed", "step_size" };
5 generational = set.new { "mode", "minor_threshold", "major_threshold" }; 5 generational = set.new { "mode", "minor_threshold", "major_threshold" };
6 }; 6 };
7 7
8 if _VERSION ~= "5.4" then 8 if _VERSION ~= "Lua 5.4" then
9 known_options.generational = nil; 9 known_options.generational = nil;
10 known_options.incremental:remove("step_size"); 10 known_options.incremental:remove("step_size");
11 end 11 end
12 12
13 local function configure(user, defaults) 13 local function configure(user, defaults)