ORIGINAL
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Functions
config.h File Reference

Platform-independent type definitions and compiler/platform detection. More...

#include <cstdint>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  original
 Main namespace for the project Original.
 

Macros

#define ORIGINAL_PLATFORM_WINDOWS   0
 
#define ORIGINAL_PLATFORM_WINDOWS_32   0
 
#define ORIGINAL_PLATFORM_WINDOWS_64   0
 
#define ORIGINAL_PLATFORM_LINUX   0
 
#define ORIGINAL_PLATFORM_MACOS   0
 
#define ORIGINAL_PLATFORM_UNIX   0
 
#define ORIGINAL_PLATFORM_UNKNOWN   0
 
#define ORIGINAL_PLATFORM_UNKNOWN   1
 
#define ORIGINAL_COMPILER_CLANG   0
 
#define ORIGINAL_COMPILER_GCC   0
 
#define ORIGINAL_COMPILER_MSVC   0
 
#define ORIGINAL_COMPILER_UNKNOWN   0
 
#define ORIGINAL_COMPILER_UNKNOWN   1
 

Typedefs

using original::floating = double
 Double-precision floating-point type.
 
using original::l_floating = long double
 Extended precision floating-point type.
 

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.
 
consteval bool original::USING_CLANG ()
 Checks if compiling with Clang.
 
consteval bool original::USING_GCC ()
 Checks if compiling with GCC.
 
consteval bool original::USING_MSVC ()
 Checks if compiling with MSVC.
 
consteval bool original::USING_UNKNOWN_COMPLIER ()
 Checks if compiling with unknown compiler.
 

Detailed Description

Platform-independent type definitions and compiler/platform detection.

Provides unified integer and floating-point type aliases for cross-platform consistency. Includes comprehensive platform and compiler detection macros and consteval functions. Ensures fixed-width integer and standardized floating-point usage throughout the codebase.