Conditional Compilation

@If POSIX
' Unix-like stuff
@ElseIf WINDOWS
' Windows-specific stuff
@End

Conditional compilation constants

Scope

How it is definedScope
Command lineGlobal to all modules
@Const directiveLocal 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