1
0
Fork 0

.bam/functions.lua: adding valid_system()

This commit is contained in:
Henrik Hautakoski 2020-12-28 19:03:16 +01:00
parent bb28f5658f
commit 707cd7732c

View file

@ -1,4 +1,6 @@
Import(".bam/utils.lua")
local _systems = {
"Win32",
"Unix"
@ -11,6 +13,12 @@ function supported_systems()
end
-- Return True if 'value' is a supported system. False otherwise.
function valid_system(value)
return contains(_systems, value)
end
-- Detect what system we currently are on.
function system()