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// ============================================================
79#ifndef ZF_ENV_LAMBDA
80 #define ZF_ENV_LAMBDA ZF_ENV_CPP11
81#endif
82
83// ============================================================
89#ifndef ZF_ENV_DEBUG
90 #if defined(DEBUG) || defined(_DEBUG)
91 #define ZF_ENV_DEBUG 1
92 #else
93 #define ZF_ENV_DEBUG 0
94 #endif
95#endif
96
97#endif // #ifndef _ZFI_ZFCoreEnvDef_h_
98
global definition