QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Quasar::PlatformDetection Class Reference

Tells at compile time which platform and build type the engine is built for. More...

#include <quasar/core/PlatformDetection.h>

Static Public Member Functions

static constexpr bool IsWindows ()
 Returns true when the engine is built for Windows.
static constexpr bool IsLinux ()
 Returns true when the engine is built for Linux.
static constexpr bool IsDebug ()
 Returns true in a Debug build.
static constexpr bool IsRelease ()
 Returns true in a Release build.

Detailed Description

Tells at compile time which platform and build type the engine is built for.

The functions are constexpr, so they can be used with if constexpr. Unlike #ifdef, both branches are still compiled and checked on every platform.


The documentation for this class was generated from the following file: