|
QuasarEngine
Cross-platform 3D engine and editor
|
Detects the platform and the build type at compile time. More...
Go to the source code of this file.
Classes | |
| class | Quasar::PlatformDetection |
| Tells at compile time which platform and build type the engine is built for. More... | |
Namespaces | |
| namespace | Quasar |
| Contains all the engine code. | |
Detects the platform and the build type at compile time.
This header defines one platform macro, QUASAR_PLATFORM_WINDOWS or QUASAR_PLATFORM_LINUX, and one build type macro, QUASAR_DEBUG or QUASAR_RELEASE. The build type is Release when NDEBUG is defined. Other platforms, including macOS, stop the build with an error.
Use these macros with #ifdef only for code that does not compile on every platform. Everywhere else, use the PlatformDetection class.