Table of Contents

Enum CompiledPlatforms

Namespace
RDCore.SDK.Semantics
Assembly
RDCore.SDK.dll

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 | Linux64

Every platform: what code outside any #If block is compiled on.

Linux32 = 8

32-bit Linux: Linux is 1, Linux64 is 0. An RD-VBA addition.

Linux64 = 16

64-bit Linux: Linux and Linux64 are 1. An RD-VBA addition.

MacOS = 4

macOS: Mac is 1.

None = 0

No platform: the branch is never live, whatever the platform.

Windows32 = 1

32-bit Windows: Win32 is 1, Win64 is 0.

Windows64 = 2

64-bit Windows: Win32 and Win64 are 1.

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.