8#if defined(DEBUG) || defined(_DEBUG)
9#define SC_CONFIGURATION_DEBUG 1
10#define SC_CONFIGURATION_RELEASE 0
12#define SC_CONFIGURATION_DEBUG 0
13#define SC_CONFIGURATION_RELEASE 1
45#define SC_PLATFORM_APPLE 1
46#define SC_PLATFORM_LINUX 0
47#define SC_PLATFORM_WINDOWS 0
48#define SC_PLATFORM_EMSCRIPTEN 0
49static constexpr Platform HostPlatform = Platform::Apple;
51#elif defined(_WIN32) || defined(_WIN64)
53#define SC_PLATFORM_APPLE 0
54#define SC_PLATFORM_LINUX 0
55#define SC_PLATFORM_WINDOWS 1
56#define SC_PLATFORM_EMSCRIPTEN 0
57static constexpr Platform HostPlatform = Platform::Windows;
59#elif defined(__EMSCRIPTEN__)
61#define SC_PLATFORM_APPLE 0
62#define SC_PLATFORM_LINUX 0
63#define SC_PLATFORM_WINDOWS 0
64#define SC_PLATFORM_EMSCRIPTEN 1
65static constexpr Platform HostPlatform = Platform::Emscripten;
67#elif defined(__linux__)
69#define SC_PLATFORM_APPLE 0
70#define SC_PLATFORM_LINUX 1
71#define SC_PLATFORM_WINDOWS 0
72#define SC_PLATFORM_EMSCRIPTEN 0
73static constexpr Platform HostPlatform = Platform::Linux;
77#error "Unsupported platform"
82#define SC_PLATFORM_64_BIT 1
84#define SC_PLATFORM_64_BIT 0
86#define SC_PLATFORM_64_BIT 1
90enum class InstructionSet
97#if defined(_M_ARM64) || defined(__aarch64__)
98#define SC_PLATFORM_ARM64 1
99#define SC_PLATFORM_INTEL 0
100static constexpr InstructionSet HostInstructionSet = InstructionSet::ARM64;
102#define SC_PLATFORM_ARM64 0
103#define SC_PLATFORM_INTEL 1
104#if SC_PLATFORM_64_BIT
105static constexpr InstructionSet HostInstructionSet = InstructionSet::Intel64;
107static constexpr InstructionSet HostInstructionSet = InstructionSet::Intel32;
Holds information about operating system.
Definition: Platform.h:29
static Type getHostOS()
Returns the currently active host operating system.