12 #if defined (mdl_resource_compiler) || defined (mdl_type_resource_generator)
14 #define BEGIN_BENTLEY_NAMESPACE
15 #define END_BENTLEY_NAMESPACE
16 #define BEGIN_BENTLEY_GEOMETRY_NAMESPACE
17 #define END_BENTLEY_GEOMETRY_NAMESPACE
18 #define ALIGNMENT_ATTRIBUTE(B)
19 #define ENUM_UNDERLYING_TYPE(T)
23 #define BENTLEY_NAMESPACE_NAME Bentley
24 #define BEGIN_BENTLEY_NAMESPACE namespace BENTLEY_NAMESPACE_NAME {
25 #define END_BENTLEY_NAMESPACE }
28 #define BENTLEY_GEOMETRY_NAMESPACE_NAME Bentley
29 #define BEGIN_BENTLEY_GEOMETRY_NAMESPACE BEGIN_BENTLEY_NAMESPACE
30 #define END_BENTLEY_GEOMETRY_NAMESPACE END_BENTLEY_NAMESPACE
33 #define BEGIN_UNNAMED_NAMESPACE namespace {
34 #define END_UNNAMED_NAMESPACE }
36 #endif // (mdl_resource_compiler) || defined (mdl_type_resource_generator)
41 #if !defined (NO_BENTLEY_STDINT_TYPEDEDFS)
44 #if defined (mdl_resource_compiler) || defined (mdl_type_resource_generator)
46 #elif defined (_WIN32)
47 #if (_MSC_VER >= 1600)
51 #if (_MSC_VER >= 1800)
54 #if (_MSC_VER == 1600)
75 #define ALIGNMENT_ATTRIBUTE(B)
77 #elif defined (__unix__)
78 #define ALIGNMENT_ATTRIBUTE(B) __attribute__((aligned(B)))
82 #error unknown compiler
100 #if defined (ANDROID)
102 #define __STDC_FORMAT_MACROS
104 #include <inttypes.h>
107 #endif // NO_BENTLEY_STDINT_TYPEDEDFS
112 #if !defined (NO_BENTLEY_BASICTYPES)
120 #if defined (__APPLE__)
122 #if defined (__LP64__)
123 typedef unsigned int UInt32;
125 typedef unsigned long UInt32;
136 #if defined (__APPLE__) && !defined (__LP64__)
148 #endif // !defined (NO_BENTLEY_BASICTYPES)
163 #if defined (__cplusplus)
164 #define ENUM_IS_FLAGS(ENUMTYPE) \
165 inline ENUMTYPE operator| (ENUMTYPE a, ENUMTYPE b) { return static_cast<ENUMTYPE>(static_cast<std::underlying_type<ENUMTYPE>::type>(a) | static_cast<std::underlying_type<ENUMTYPE>::type>(b)); } \
166 inline ENUMTYPE operator& (ENUMTYPE a, ENUMTYPE b) { return static_cast<ENUMTYPE>(static_cast<std::underlying_type<ENUMTYPE>::type>(a) & static_cast<std::underlying_type<ENUMTYPE>::type>(b)); } \
167 inline ENUMTYPE operator~ (ENUMTYPE a) { return static_cast<ENUMTYPE>(~(static_cast<std::underlying_type<ENUMTYPE>::type>(a))); } \
168 inline bool operator! (ENUMTYPE a) { return 0 == static_cast<std::underlying_type<ENUMTYPE>::type>(a); }
170 #define ENUM_IS_FLAGS (ENUMTYPE)
uint16_t Utf16Char
Definition: Bentley.r.h:155
unsigned int UInt
Definition: Bentley.r.h:140
long long int64_t
Definition: Bentley.r.h:94
long Long32
Definition: Bentley.r.h:145
uint16_t UInt16
Definition: Bentley.r.h:118
unsigned long ULong32
Definition: Bentley.r.h:146
uint8_t UInt8
Definition: Bentley.r.h:116
int int32_t
Definition: Bentley.r.h:92
int16_t Int16
Definition: Bentley.r.h:117
short Short
Definition: Bentley.r.h:135
uint32_t UInt32
Definition: Bentley.r.h:128
int8_t Int8
Definition: Bentley.r.h:115
short int16_t
Definition: Bentley.r.h:90
unsigned long long uint64_t
Definition: Bentley.r.h:95
int32_t Int32
Definition: Bentley.r.h:119
unsigned short UShort
Definition: Bentley.r.h:133
unsigned long ULong
Definition: Bentley.r.h:134
unsigned char byte
Definition: Bentley.r.h:144
uint64_t UInt64
Definition: Bentley.r.h:131
unsigned short uint16_t
Definition: Bentley.r.h:91
unsigned char UChar
Definition: Bentley.r.h:142
int64_t Int64
Definition: Bentley.r.h:130
unsigned char Byte
Definition: Bentley.r.h:143
unsigned int uint32_t
Definition: Bentley.r.h:93
char int8_t
Definition: Bentley.r.h:88
typedef ALIGNMENT_ATTRIBUTE(8) double T_Adouble
unsigned char uint8_t
Definition: Bentley.r.h:89
char Utf8Char
Definition: Bentley.r.h:156