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
44#if defined(__cplusplus) || defined(c_plusplus)
45 #define ZF_ENV_EXTERN_C_BEGIN extern "C" {
46 #define ZF_ENV_EXTERN_C_END }
47#else
48 #define ZF_ENV_EXTERN_C_BEGIN
49 #define ZF_ENV_EXTERN_C_END
50#endif
51
52// ============================================================
56#define ZF_ENV_SENSITIVE(hint)
57
58// ============================================================
69#ifndef ZF_ENV_CPP11
70 #define ZF_ENV_CPP11 0
71#endif
72
73// ============================================================
84#ifndef ZF_ENV_LAMBDA
85 #define ZF_ENV_LAMBDA 0
86#endif
87
88// ============================================================
94#ifndef ZF_ENV_DEBUG
95 #if defined(DEBUG) || defined(_DEBUG)
96 #define ZF_ENV_DEBUG 1
97 #else
98 #define ZF_ENV_DEBUG 0
99 #endif
100#endif
101
102#endif // #ifndef _ZFI_ZFCoreEnvDef_h_
103
global definition