Enum CompiledPlatforms
The platforms that code is compiled on: those whose predefined conditional-compilation constants make live the #If branch it is written in
(MS-VBAL §3.4.2), whichever environment the session that analyzed it runs in.
[Flags]
public enum CompiledPlatforms
Fields
All = Windows32 | Windows64 | MacOS | Linux32 | Linux64Every platform: what code outside any
#Ifblock is compiled on.Linux32 = 832-bit Linux:
Linuxis1,Linux64is0. An RD-VBA addition.Linux64 = 1664-bit Linux:
LinuxandLinux64are1. An RD-VBA addition.MacOS = 4macOS:
Macis1.None = 0No platform: the branch is never live, whatever the platform.
Windows32 = 132-bit Windows:
Win32is1,Win64is0.Windows64 = 264-bit Windows:
Win32andWin64are1.
Remarks
A platform is an operating system and a bitness, the two things that decide the values of Win32, Win64, Mac, Linux and
Linux64 (Of(IRuntimeEnvironmentProfile)). Code outside any #If block is compiled on
All of them; code in a branch is compiled on those where the conditions before it are false and its own is true. A constant that no
platform decides (a project #Const, a module's own, DEBUG, VBA7) has the value it has in the session, on every platform; one
that overrides a predefined constant overrides it on every platform too.
Linux and Linux64 are RD-VBA additions, and so are the platforms they decide: MS-VBA runs on Windows and macOS only.