Rihen Rihen NkentseuDocumentation

PlatformConfig

struct

Platform configuration structure (compile time)

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

Hierarchy

Base classes : none. Derived classes : none.

Hierarchy : PlatformConfigPlatformConfig

Members · 15

platformNameReadable name of the target platform
archNameReadable name of the CPU architecture
compilerNameName of the compiler used
compilerVersionNumeric compiler version
isDebugBuildTells whether the build is in debug mode
isReleaseBuildTells whether the build is in release mode
is64BitTells whether the target architecture is 64-bit
isLittleEndianTells whether the system is little-endian
hasUnicodeUnicode support (wchar_t, UTF-16/UTF-8 APIs)
hasThreadingMultithreading support (C++11+, pthreads, Windows threads)
hasFilesystemSupport for the <filesystem> library (C++17)
hasNetworkNetwork API support (sockets, etc.)
maxPathLengthMaximum length of a file path
cacheLineSizeSize of a CPU cache line in bytes
PlatformConfigDefault constructor (initialised from the macros)

Member details

platformName

#
field
const char *platformName

Readable name of the target platform

archName

#
field
const char *archName

Readable name of the CPU architecture

compilerName

#
field
const char *compilerName

Name of the compiler used

compilerVersion

#
field
int compilerVersion

Numeric compiler version

isDebugBuild

#
field
bool isDebugBuild

Tells whether the build is in debug mode

isReleaseBuild

#
field
bool isReleaseBuild

Tells whether the build is in release mode

is64Bit

#
field
bool is64Bit

Tells whether the target architecture is 64-bit

isLittleEndian

#
field
bool isLittleEndian

Tells whether the system is little-endian

hasUnicode

#
field
bool hasUnicode

Unicode support (wchar_t, UTF-16/UTF-8 APIs)

hasThreading

#
field
bool hasThreading

Multithreading support (C++11+, pthreads, Windows threads)

hasFilesystem

#
field
bool hasFilesystem

Support for the <filesystem> library (C++17)

hasNetwork

#
field
bool hasNetwork

Network API support (sockets, etc.)

maxPathLength

#
field
int maxPathLength

Maximum length of a file path

cacheLineSize

#
field
int cacheLineSize

Size of a CPU cache line in bytes

PlatformConfig

#
constructor
PlatformConfig()

Default constructor (initialised from the macros)