ORIGINAL
Loading...
Searching...
No Matches
Platform Detection Functions

Compile-time functions for platform detection. More...

Functions

consteval bool original::ON_WINDOWS ()
 Checks if compiling for Windows platform.
 
consteval bool original::ON_WIN32 ()
 Checks if compiling for 32-bit Windows.
 
consteval bool original::ON_WIN64 ()
 Checks if compiling for 64-bit Windows.
 
consteval bool original::ON_LINUX ()
 Checks if compiling for Linux platform.
 
consteval bool original::ON_MACOS ()
 Checks if compiling for macOS platform.
 
consteval bool original::ON_UNIX ()
 Checks if compiling for Unix-like platform (excluding Linux/macOS)
 
consteval bool original::ON_UNKNOWN_PLATFORM ()
 Checks if compiling for unknown platform.
 

Detailed Description

Compile-time functions for platform detection.

Function Documentation

◆ 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