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 #if defined(__cplusplus) && (__cplusplus >= 201103L)
81 #define ZF_ENV_LAMBDA 1
82 #else
83 #define ZF_ENV_LAMBDA 0
84 #endif
85#endif
86
87// ============================================================
93#ifndef ZF_ENV_DEBUG
94 #if defined(DEBUG) || defined(_DEBUG)
95 #define ZF_ENV_DEBUG 1
96 #else
97 #define ZF_ENV_DEBUG 0
98 #endif
99#endif
100
101#endif // #ifndef _ZFI_ZFCoreEnvDef_h_
102
global definition