Rihen Rihen NkentseuDocumentation
Development version, not published. Built from main: it shows what is coming (fixes, descriptions written since the last tag) and can change with every commit. Go to the stable version 0.1.0-beta.11

NkPlatformConfig.h

Include
#include "NKPlatform/NkPlatformConfig.h"
Namespace
nkentseu::platform
Link (Jenga)
nkentseudependson(["NKPlatform"])

Types

PlatformConfigPlatform configuration structure (compile time)
PlatformCapabilitiesStructure of the platform hardware capabilities (run time)

Functions · 7

GetPlatformConfigGets the PlatformConfig singleton instance
GetPlatformCapabilitiesGets the PlatformCapabilities singleton instance
GetPlatformNameGets the platform name as a string
GetArchNameGets the architecture name as a string
GetCompilerNameGets the compiler name as a string
Is64BitChecks whether the target architecture is 64-bit
IsLittleEndianChecks whether the system is little-endian

Macros · 17

NKENTSEU_PATH_SEPARATORPath separator on Windows (character)
NKENTSEU_PATH_SEPARATOR_STRPath separator on Windows (string)
NKENTSEU_LINE_ENDINGEnd-of-line sequence on Windows
NKENTSEU_MAX_PATHMaximum path length on Windows (MAX_PATH)
NKENTSEU_DYNAMIC_LIB_EXTWindows dynamic library extension
NKENTSEU_STATIC_LIB_EXTWindows static library extension
NKENTSEU_EXECUTABLE_EXTWindows executable extension
NKENTSEU_HAS_UNICODEUnicode support flag
NKENTSEU_HAS_THREADINGMultithreading support flag
NKENTSEU_HAS_FILESYSTEM<filesystem> support flag
NKENTSEU_HAS_NETWORKNetwork API support flag
NKENTSEU_DEBUG_BUILDDebug build flag
NKENTSEU_RELEASE_BUILDIs 1 in a Release build (NDEBUG without _DEBUG or DEBUG), 0 otherwise.
NKENTSEU_OPTIMIZED_BUILDOptimised build flag
NKENTSEU_CACHE_ALIGNEDAlignment on a CPU cache line
NKENTSEU_SIMD_ALIGNMENTAlignment required by SIMD instructions
NKENTSEU_SIMD_ALIGNEDAlignment for SIMD data

Member details

GetPlatformConfig

#
function
const PlatformConfig &GetPlatformConfig()

Gets the PlatformConfig singleton instance

GetPlatformCapabilities

#
function
const PlatformCapabilities &GetPlatformCapabilities()

Gets the PlatformCapabilities singleton instance

NKENTSEU_PATH_SEPARATOR

#
macro
#define NKENTSEU_PATH_SEPARATOR

Path separator on Windows (character)

NKENTSEU_PATH_SEPARATOR_STR

#
macro
#define NKENTSEU_PATH_SEPARATOR_STR

Path separator on Windows (string)

NKENTSEU_LINE_ENDING

#
macro
#define NKENTSEU_LINE_ENDING

End-of-line sequence on Windows

NKENTSEU_MAX_PATH

#
macro
#define NKENTSEU_MAX_PATH

Maximum path length on Windows (MAX_PATH)

NKENTSEU_DYNAMIC_LIB_EXT

#
macro
#define NKENTSEU_DYNAMIC_LIB_EXT

Windows dynamic library extension

NKENTSEU_STATIC_LIB_EXT

#
macro
#define NKENTSEU_STATIC_LIB_EXT

Windows static library extension

NKENTSEU_EXECUTABLE_EXT

#
macro
#define NKENTSEU_EXECUTABLE_EXT

Windows executable extension

NKENTSEU_HAS_UNICODE

#
macro
#define NKENTSEU_HAS_UNICODE

Unicode support flag

NKENTSEU_HAS_THREADING

#
macro
#define NKENTSEU_HAS_THREADING

Multithreading support flag

NKENTSEU_HAS_FILESYSTEM

#
macro
#define NKENTSEU_HAS_FILESYSTEM

<filesystem> support flag

NKENTSEU_HAS_NETWORK

#
macro
#define NKENTSEU_HAS_NETWORK

Network API support flag

NKENTSEU_DEBUG_BUILD

#
macro
#define NKENTSEU_DEBUG_BUILD

Debug build flag

NKENTSEU_RELEASE_BUILD

#
macro
#define NKENTSEU_RELEASE_BUILD

Is 1 in a Release build (NDEBUG without _DEBUG or DEBUG), 0 otherwise.

NKENTSEU_OPTIMIZED_BUILD

#
macro
#define NKENTSEU_OPTIMIZED_BUILD

Optimised build flag

NKENTSEU_CACHE_ALIGNED

#
macro
#define NKENTSEU_CACHE_ALIGNED

Alignment on a CPU cache line

@codefragment, not compiled
struct NKENTSEU_CACHE_ALIGNED ThreadLocalData {
    int counter;  // Aligné sur ligne de cache
};

NKENTSEU_SIMD_ALIGNMENT

#
macro
#define NKENTSEU_SIMD_ALIGNMENT

Alignment required by SIMD instructions

NKENTSEU_SIMD_ALIGNED

#
macro
#define NKENTSEU_SIMD_ALIGNED

Alignment for SIMD data

@codefragment, not compiled
NKENTSEU_SIMD_ALIGNED float simdBuffer[16];  // Aligné pour AVX/SSE

GetPlatformName

#
function
const char *GetPlatformName()

Gets the platform name as a string

GetArchName

#
function
const char *GetArchName()

Gets the architecture name as a string

GetCompilerName

#
function
const char *GetCompilerName()

Gets the compiler name as a string

Is64Bit

#
function
bool Is64Bit()

Checks whether the target architecture is 64-bit

IsLittleEndian

#
function
bool IsLittleEndian()

Checks whether the system is little-endian