Skip to content
starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Checks the current operating system identifier against a particular value.

os.is("id")

Parameters

id is an operating system identifier; see system() for a complete list of identifiers.

Note that this function tests against the OS being targeted, which is not necessarily the same as the OS on which Premake is being run. If you are running on Mac OS X and generating Visual Studio project files, the identifier is "Windows", since that is the OS being targeted by the Visual Studio action.

Return Value

True if the supplied ID matches the current operating system identifier, false otherwise.

Availability

Premake 4.0 or later.

See Also

Clone this wiki locally