Compile-time functions for platform detection.
More...
Compile-time functions for platform detection.
◆ ON_LINUX()
bool original::ON_LINUX |
( |
| ) |
|
|
consteval |
Checks if compiling for Linux platform.
- Returns
- true if compiling for Linux, false otherwise
- Note
- Evaluated at compile-time
◆ ON_MACOS()
bool original::ON_MACOS |
( |
| ) |
|
|
consteval |
Checks if compiling for macOS platform.
- Returns
- true if compiling for macOS, false otherwise
- Note
- Evaluated at compile-time
◆ ON_UNIX()
bool original::ON_UNIX |
( |
| ) |
|
|
consteval |
Checks if compiling for Unix-like platform (excluding Linux/macOS)
- Returns
- true if compiling for Unix, false otherwise
- Note
- Evaluated at compile-time
◆ ON_UNKNOWN_PLATFORM()
bool original::ON_UNKNOWN_PLATFORM |
( |
| ) |
|
|
consteval |
Checks if compiling for unknown platform.
- Returns
- true if platform detection failed, false otherwise
- Note
- Evaluated at compile-time
◆ ON_WIN32()
bool original::ON_WIN32 |
( |
| ) |
|
|
consteval |
Checks if compiling for 32-bit Windows.
- Returns
- true if compiling for Win32, false otherwise
- Note
- Evaluated at compile-time
◆ ON_WIN64()
bool original::ON_WIN64 |
( |
| ) |
|
|
consteval |
Checks if compiling for 64-bit Windows.
- Returns
- true if compiling for Win64, false otherwise
- Note
- Evaluated at compile-time
◆ ON_WINDOWS()
bool original::ON_WINDOWS |
( |
| ) |
|
|
consteval |
Checks if compiling for Windows platform.
- Returns
- true if compiling for Windows, false otherwise
- Note
- Evaluated at compile-time