ZFFramework
Loading...
Searching...
No Matches
ZFCoreEnvDef.h
Go to the documentation of this file.
1
5#ifndef _ZFI_ZFCoreEnvDef_h_
6#define _ZFI_ZFCoreEnvDef_h_
7
8#include "ZFCoreEnvConfig.h"
9
10// ============================================================
12#ifndef ZF_ENV_EXPORT
13 #ifdef _WIN32
14 #define ZF_ENV_EXPORT __declspec(dllexport)
15 #else
16 #define ZF_ENV_EXPORT __attribute__((visibility("default")))
17 #endif
18#endif
20#ifndef ZF_ENV_IMPORT
21 #ifdef _WIN32
22 #define ZF_ENV_IMPORT __declspec(dllimport)
23 #else
24 #define ZF_ENV_IMPORT
25 #endif
26#endif
27
29#ifndef ZFLIB_ZFCore
30 #define ZFLIB_ZFCore ZF_ENV_IMPORT
31#endif
32
34#ifndef ZFLIB_APP
35 #define ZFLIB_APP ZF_ENV_EXPORT
36#endif
37
39#ifndef ZFLIB_HIDDEN
40 #ifdef _WIN32
41 #define ZFLIB_HIDDEN
42 #else
43 #define ZFLIB_HIDDEN __attribute__((visibility("hidden")))
44 #endif
45#endif
46
48#define ZFLIB_HIDDEN_BEGIN() namespace {
50#define ZFLIB_HIDDEN_END() }
51
58#if defined(__cplusplus) || defined(c_plusplus)
59 #define ZF_ENV_EXTERN_C_BEGIN extern "C" {
60 #define ZF_ENV_EXTERN_C_END }
61#else
62 #define ZF_ENV_EXTERN_C_BEGIN
63 #define ZF_ENV_EXTERN_C_END
64#endif
65
66// ============================================================
70#define ZF_ENV_SENSITIVE(hint, ...)
71
72// ============================================================
83#ifndef ZF_ENV_CPP11
84 #define ZF_ENV_CPP11 0
85#endif
86
87// ============================================================
98#ifndef ZF_ENV_LAMBDA
99 #define ZF_ENV_LAMBDA 0
100#endif
101
102// ============================================================
108#ifndef ZF_ENV_DEBUG
109 #if defined(DEBUG) || defined(_DEBUG)
110 #define ZF_ENV_DEBUG 1
111 #else
112 #define ZF_ENV_DEBUG 0
113 #endif
114#endif
115
116#endif // #ifndef _ZFI_ZFCoreEnvDef_h_
117
global definition