Skip to content

Platform

Include: Use System\Application.pkg

Platform APIs identify the runtime environment and expose application-level helpers.

Command line

  • Command Line - Reads process arguments and application object handles.

Runtime platform

Compiler directives

Example

Integer ePlatform
Boolean bWeb
Get RuntimePlatformId to ePlatform
Get RuntimePlatformIsWeb to bWeb
#IFDEF IS$CROSS_PLATFORM
    // Techstack specific code here
#ELSE
    // Windows runtime code here
#ENDIF