.bam/functions.lua: adding valid_system()
This commit is contained in:
parent
bb28f5658f
commit
707cd7732c
1 changed files with 8 additions and 0 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
Import(".bam/utils.lua")
|
||||||
|
|
||||||
local _systems = {
|
local _systems = {
|
||||||
"Win32",
|
"Win32",
|
||||||
"Unix"
|
"Unix"
|
||||||
|
|
@ -11,6 +13,12 @@ function supported_systems()
|
||||||
end
|
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.
|
-- Detect what system we currently are on.
|
||||||
function system()
|
function system()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue