148 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
149 #endif
150
151 // Formatting.
152 #define FORMAT64_MODIFIER "I64"
153
154 #define offset_of(klass,field) offsetof(klass,field)
155
156 #define THREAD_LOCAL __declspec(thread)
157
158 // Inlining support
159 // MSVC has '__declspec(noinline)' but according to the official documentation
160 // it only applies to member functions. There are reports though which pretend
161 // that it also works for freestanding functions.
162 #define NOINLINE __declspec(noinline)
163 #define ALWAYSINLINE __forceinline
164
165 // Alignment
166 #define ATTRIBUTE_ALIGNED(x) __declspec(align(x))
167
168 #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_VISCPP_HPP
|
148 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
149 #endif
150
151 // Formatting.
152 #define FORMAT64_MODIFIER "I64"
153
154 #define offset_of(klass,field) offsetof(klass,field)
155
156 #define THREAD_LOCAL __declspec(thread)
157
158 // Inlining support
159 // MSVC has '__declspec(noinline)' but according to the official documentation
160 // it only applies to member functions. There are reports though which pretend
161 // that it also works for freestanding functions.
162 #define NOINLINE __declspec(noinline)
163 #define ALWAYSINLINE __forceinline
164
165 // Alignment
166 #define ATTRIBUTE_ALIGNED(x) __declspec(align(x))
167
168 // Depreciation
169 #define DEPRECATED __declspec(deprecated)
170
171 #ifdef _M_ARM64
172 #define USE_VECTORED_EXCEPTION_HANDLING
173 #endif
174
175 #endif // SHARE_UTILITIES_GLOBALDEFINITIONS_VISCPP_HPP
|