Skip to content

Runtime platform constants

Include: Use System\Application.pkg

Runtime platform constants identify values returned by RuntimePlatformId.

Constant Value Meaning
C_RuntimePlaformId_Unknown 0 Platform is not recognized.
C_RuntimePlaformId_Windows 1 Windows runtime.
C_RuntimePlaformId_MacOS 2 macOS runtime.
C_RuntimePlaformId_Linux 3 Linux runtime.
C_RuntimePlaformId_Unix 4 Unix runtime.
C_RuntimePlaformId_WASM 5 WebAssembly runtime.
C_RuntimePlaformId_WASI 6 WASI runtime.

Example

Integer ePlatform
Get RuntimePlatformId to ePlatform
If (ePlatform = C_RuntimePlaformId_MacOS) Begin
    // macOS-specific application setup
End

See also