Conditional Compilation

@If POSIX
' Unix-like code goes here.
@ElseIf WINDOWS
' Windows-only code goes here.
@End

Conditional compilation constants

Scope

How it is supplied Scope
Command line Global to all modules
@Const directive Local to the module

Platform constants

ConstantPlatform
ANDROIDGoogle Android
ARM_3232-bit ARM processor
ARM_6464-bit ARM processor
DESKTOPDesktop operating system
IOSApple iOS
LINUXLinux kernel
MACOSApple Mac OS X
MOBILEMobile operating system
POSIXPOSIX-compliant operating system
WINDOWSMicrosoft Windows
X86_3232-bit Intel x86-compatible processor
X86_6464-bit Intel x86-compatible processor

See also