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

NkPlatformExport.h

Include
#include "NKPlatform/NkPlatformExport.h"
Link (Jenga)
nkentseudependson(["NKPlatform"])

Macros · 10

NKENTSEU_EXPORT_HAS_DECLSPECTells whether the compiler supports __declspec(dllexport/dllimport)
NKENTSEU_EXPORT_HAS_VISIBILITYTells whether the compiler supports __attribute__((visibility))
NKENTSEU_PLATFORM_API_EXPORTMacro to export a symbol from NKPlatform
NKENTSEU_PLATFORM_API_IMPORTMacro to import a symbol from NKPlatform
NKENTSEU_API_LOCALMacro to keep a symbol private to NKPlatform
NKENTSEU_PLATFORM_APIMain macro for exporting/importing NKPlatform symbols
NKENTSEU_CLASS_EXPORTMacro to export a whole class
NKENTSEU_EXTERN_CMacro for C linkage (extern "C")
NKENTSEU_EXTERN_C_BEGINOpens an extern "C" block in C++; does nothing in C.
NKENTSEU_EXTERN_C_ENDCloses the block opened by NKENTSEU_EXTERN_C_BEGIN.

Member details

NKENTSEU_EXPORT_HAS_DECLSPEC

#
macro
#define NKENTSEU_EXPORT_HAS_DECLSPEC

Tells whether the compiler supports __declspec(dllexport/dllimport)

NKENTSEU_EXPORT_HAS_VISIBILITY

#
macro
#define NKENTSEU_EXPORT_HAS_VISIBILITY

Tells whether the compiler supports __attribute__((visibility))

NKENTSEU_PLATFORM_API_EXPORT

#
macro
#define NKENTSEU_PLATFORM_API_EXPORT

Macro to export a symbol from NKPlatform

NKENTSEU_PLATFORM_API_IMPORT

#
macro
#define NKENTSEU_PLATFORM_API_IMPORT

Macro to import a symbol from NKPlatform

NKENTSEU_API_LOCAL

#
macro
#define NKENTSEU_API_LOCAL

Macro to keep a symbol private to NKPlatform

NKENTSEU_PLATFORM_API

#
macro
#define NKENTSEU_PLATFORM_API

Main macro for exporting/importing NKPlatform symbols

@codefragment, not compiled
// Dans un en-tête public de NKPlatform :
NKENTSEU_PLATFORM_API void PlatformInitialize();

// Lors de la compilation de NKPlatform en DLL :
//   -DNKENTSEU_PLATFORM_BUILD_SHARED_LIB
// → La fonction est exportée

// Lors de l'utilisation par un client :
//   (aucun define nécessaire)
// → La fonction est importée

NKENTSEU_CLASS_EXPORT

#
macro
#define NKENTSEU_CLASS_EXPORT

Macro to export a whole class

NKENTSEU_EXTERN_C

#
macro
#define NKENTSEU_EXTERN_C

Macro for C linkage (extern "C")

NKENTSEU_EXTERN_C_BEGIN

#
macro
#define NKENTSEU_EXTERN_C_BEGIN

Opens an extern "C" block in C++; does nothing in C.

NKENTSEU_EXTERN_C_END

#
macro
#define NKENTSEU_EXTERN_C_END

Closes the block opened by NKENTSEU_EXTERN_C_BEGIN.