Conditional Compilation in ViviFire

@If LinuxOS Or MacOS Then
' Unix-like stuff
@ElseIf WindowsOS Then
' Windows-specific stuff
' ...

Conditional compilation constants


How it is definedScope
Command lineGlobal to all modules
@Const directiveLocal to the module

Predefined constants

AndroidOSThe platform is Google's Android
AppleIOSThe platform is Apple iOS
LinuxOSThe platform is a distribution of Linux
MacOSThe platform is Apple OSX
Win32APIThe platform is Microsoft's Win32
Win64APIThe platform is Microsoft's Win64
WindowsOSThe platform is Microsoft Windows

See also