NkPlatformInline.h
Include
#include "NKPlatform/NkPlatformInline.h"Link (Jenga)
nkentseudependson(["NKPlatform"])Macros · 23
Member details
#define NKENTSEU_INLINE_COMPILER_MSVC
Source : NkPlatformInline.h, line 29
#define NKENTSEU_INLINE_COMPILER_NAME
Source : NkPlatformInline.h, line 30
#define NKENTSEU_INLINE_COMPILER_CLANG
Source : NkPlatformInline.h, line 34
#define NKENTSEU_INLINE_COMPILER_GCC
Source : NkPlatformInline.h, line 39
#define NKENTSEU_INLINE_COMPILER_INTEL
Source : NkPlatformInline.h, line 44
#define NKENTSEU_INLINE_COMPILER_ARMCC
Source : NkPlatformInline.h, line 49
#define NKENTSEU_INLINE_COMPILER_IAR
Source : NkPlatformInline.h, line 52
#define NKENTSEU_INLINE_COMPILER_UNKNOWN
Source : NkPlatformInline.h, line 57
#define NKENTSEU_INLINE
Source : NkPlatformInline.h, line 70
#define NKENTSEU_FORCE_INLINE
Source : NkPlatformInline.h, line 98
#define NKENTSEU_NO_INLINE
Source : NkPlatformInline.h, line 131
#define NKENTSEU_PURE_FUNCTION
States that a function has no side effects
NKENTSEU_PURE_FUNCTION int Square(int x) { return x * x; }
Source : NkPlatformInline.h, line 167
#define NKENTSEU_CONST_FUNCTION
States that a function only depends on its parameters
NKENTSEU_CONST_FUNCTION int Add(int a, int b) { return a + b; }
Source : NkPlatformInline.h, line 186
#define NKENTSEU_RESTRICT_RETURN
States that the returned pointer aliases no other pointer
Source : NkPlatformInline.h, line 200
#define NKENTSEU_RESTRICT_PARAM(ptr)
States that the pointer parameters do not alias each other
void VectorAdd( float* NKENTSEU_RESTRICT_PARAM(out), const float* NKENTSEU_RESTRICT_PARAM(a), const float* NKENTSEU_RESTRICT_PARAM(b), size_t count );
Source : NkPlatformInline.h, line 228
#define NKENTSEU_NORETURN
States that the function may not return
NKENTSEU_NORETURN void FatalError(const char* message);
Source : NkPlatformInline.h, line 249
#define NKENTSEU_COLD_FUNCTION
States that the function is unlikely to be called
Source : NkPlatformInline.h, line 267
#define NKENTSEU_HOT_FUNCTION
States that the function is very likely to be called
Source : NkPlatformInline.h, line 281
#define NKENTSEU_LIKELY(condition)
States that a condition is probably true
if (NKENTSEU_LIKELY(ptr != nullptr)) { // Hot path : code fréquemment exécuté ProcessData(ptr); } else { // Cold path : gestion d'erreur rare HandleNullPointer(); }
Source : NkPlatformInline.h, line 313
#define NKENTSEU_UNLIKELY(condition)
States that a condition is probably false
if (NKENTSEU_UNLIKELY(errorCode != 0)) { LogError(errorCode); return false; } // Hot path continue ici sans saut
Source : NkPlatformInline.h, line 337
#define NKENTSEU_API_INLINE
Exports an inline function
Source : NkPlatformInline.h, line 356
#define NKENTSEU_API_FORCE_INLINE
Exports a force_inline function
Source : NkPlatformInline.h, line 367
#define NKENTSEU_API_NO_INLINE
Exports a no_inline function
Source : NkPlatformInline.h, line 377