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
PlatformConfig
struct
Platform configuration structure (compile time)
Include
#include "NKPlatform/NkPlatformConfig.h"Namespace
nkentseu::platformLink (Jenga)
nkentseudependson(["NKPlatform"])C++
struct PlatformConfigHierarchy
Base classes : none. Derived classes : none.
Members · 15
platformName | Readable name of the target platform |
archName | Readable name of the CPU architecture |
compilerName | Name of the compiler used |
compilerVersion | Numeric compiler version |
isDebugBuild | Tells whether the build is in debug mode |
isReleaseBuild | Tells whether the build is in release mode |
is64Bit | Tells whether the target architecture is 64-bit |
isLittleEndian | Tells whether the system is little-endian |
hasUnicode | Unicode support (wchar_t, UTF-16/UTF-8 APIs) |
hasThreading | Multithreading support (C++11+, pthreads, Windows threads) |
hasFilesystem | Support for the <filesystem> library (C++17) |
hasNetwork | Network API support (sockets, etc.) |
maxPathLength | Maximum length of a file path |
cacheLineSize | Size of a CPU cache line in bytes |
PlatformConfig | Default constructor (initialised from the macros) |
Member details
const char *platformName
Readable name of the target platform
Source : NkPlatformConfig.h, line 90
const char *archName
Readable name of the CPU architecture
Source : NkPlatformConfig.h, line 96
const char *compilerName
Name of the compiler used
Source : NkPlatformConfig.h, line 102
int compilerVersion
Numeric compiler version
Source : NkPlatformConfig.h, line 108
bool isDebugBuild
Tells whether the build is in debug mode
Source : NkPlatformConfig.h, line 118
bool isReleaseBuild
Tells whether the build is in release mode
Source : NkPlatformConfig.h, line 124
bool is64Bit
Tells whether the target architecture is 64-bit
Source : NkPlatformConfig.h, line 130
bool isLittleEndian
Tells whether the system is little-endian
Source : NkPlatformConfig.h, line 136
bool hasUnicode
Unicode support (wchar_t, UTF-16/UTF-8 APIs)
Source : NkPlatformConfig.h, line 146
bool hasThreading
Multithreading support (C++11+, pthreads, Windows threads)
Source : NkPlatformConfig.h, line 152
bool hasFilesystem
Support for the <filesystem> library (C++17)
Source : NkPlatformConfig.h, line 158
bool hasNetwork
Network API support (sockets, etc.)
Source : NkPlatformConfig.h, line 164
int maxPathLength
Maximum length of a file path
Source : NkPlatformConfig.h, line 174
int cacheLineSize
Size of a CPU cache line in bytes
Source : NkPlatformConfig.h, line 180
PlatformConfig()
Default constructor (initialised from the macros)
Source : NkPlatformConfig.h, line 185