8#ifndef BASE_CONSTANTS_H
9#define BASE_CONSTANTS_H
20#define A_UTILS_LOCAL auto
22#define A_UTILS_STATIC static
24#define A_UTILS_EXTERN extern
26#define A_UTILS_REGIST register
65#define INVALID_SIZE 0xFFFFFFFF
67#define INVALID_POS 0xFFFFFFFF
69#define INVALID_HANDLE 0xFFFFFFFF
91#define BIT16 0x00010000
92#define BIT17 0x00020000
93#define BIT18 0x00040000
94#define BIT19 0x00080000
95#define BIT20 0x00100000
96#define BIT21 0x00200000
97#define BIT22 0x00400000
98#define BIT23 0x00800000
99#define BIT24 0x01000000
100#define BIT25 0x02000000
101#define BIT26 0x04000000
102#define BIT27 0x08000000
103#define BIT28 0x10000000
104#define BIT29 0x20000000
105#define BIT30 0x40000000
106#define BIT31 0x80000000
108#define fHIGHBYTE(x) ( (( x ) & 0xFF00) >> 8 )
109#define fLOWBYTE(x) ( ( x ) & 0x00FF )
111#define fHIGHWORD(x) ( (( x ) & 0xFFFF0000) >> 16 )
112#define fLOWWORD(x) ( ( x ) & 0x0000FFFF )
115#define PLATFORM_NOT_SUPPORTED 0x00
118#define PLATFORM_LITTLE_ENDIAN_8 0x01
121#define PLATFORM_BIG_ENDIAN_8 0x02
124#define PLATFORM_BYTEORDER __get_platform_byteorder()
132 tUInt32 ui32Value = 0x01020304;
133 if (((
unsigned char*)&ui32Value)[0] == 0x04 &&
134 ((
unsigned char*)&ui32Value)[2] == 0x02 )
138 else if (((
unsigned char*)&ui32Value)[0] == 0x01 &&
139 ((
unsigned char*)&ui32Value)[2] == 0x03 )
150#define PLATFORM_COMPILER_MSVC7_RELEASE 1300
152#define PLATFORM_COMPILER_MSVC7_DEBUG 11300
155#define PLATFORM_COMPILER_MSVC8_RELEASE 1400
157#define PLATFORM_COMPILER_MSVC8_DEBUG 11400
160#define PLATFORM_COMPILER_MSVC9_RELEASE 1500
162#define PLATFORM_COMPILER_MSVC9_DEBUG 11500
165#define PLATFORM_COMPILER_MSVC10_RELEASE 1600
167#define PLATFORM_COMPILER_MSVC10_DEBUG 11600
170#define PLATFORM_COMPILER_MSVC11_RELEASE 1700
172#define PLATFORM_COMPILER_MSVC11_DEBUG 11700
175#define PLATFORM_COMPILER_MSVC12_RELEASE 1800
177#define PLATFORM_COMPILER_MSVC12_DEBUG 11800
180#define PLATFORM_COMPILER_MSVC14_RELEASE 1900
182#define PLATFORM_COMPILER_MSVC14_DEBUG 11900
187#define WINDOWS_SYSTEM_MAJOR_VERSION_VISTA 6
189#define WINDOWS_SYSTEM_MINOR_VERSION_VISTA 0
192#define WINDOWS_SYSTEM_MAJOR_VERSION_XP 5
194#define WINDOWS_SYSTEM_MINOR_VERSION_XP 1
197#define WINDOWS_SYSTEM_MAJOR_VERSION_2000 5
199#define WINDOWS_SYSTEM_MINOR_VERSION_2000 0
212 #define PLATFORM_COMPILER_CURRENT ((_MSC_VER / 100) * 100 + 10000)
214 #define PLATFORM_COMPILER_CURRENT ((_MSC_VER / 100) * 100)
217 #define PLATFORM_COMPILER_CURRENT 0
222 #define _stricmp strcasecmp
224 #define _strnicmp strncasecmp
260#ifdef A_UTILS_NO_DEPRECATED_WARNING
261 #define A_UTILS_DEPRECATED(_func_) _func_
262 #define A_UTILS_DEPRECATED_MESSAGE(_message_)
263 #define A_UTILS_CLASS_DEPRECATED_BEGIN
264 #define A_UTILS_CLASS_DEPRECATED_END
267 #define A_UTILS_DEPRECATED(_func_) __attribute__ ((deprecated)) _func_
268 #define A_UTILS_CLASS_DEPRECATED_BEGIN
269 #define A_UTILS_CLASS_DEPRECATED_END __attribute__ ((deprecated))
271 #define A_UTILS_DEPRECATED(_func_) __declspec( deprecated("This is deprecated. See documentation for further information!")) _func_
272 #define A_UTILS_CLASS_DEPRECATED_BEGIN __declspec( deprecated("This is deprecated. See documentation for further information!"))
273 #define A_UTILS_CLASS_DEPRECATED_END
275 #define A_UTILS_DEPRECATED_MESSAGE(_depr_message_) [[deprecated(_depr_message_)]]
278#ifdef A_UTILS_LEGACY_CONSTANTS_MACROS
unsigned long tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
#define PLATFORM_NOT_SUPPORTED
defines a common value for unsupportes platform
static unsigned char __get_platform_byteorder()
This function retrieves the platform dependent byte order.
#define PLATFORM_BIG_ENDIAN_8
defines the big endianess value, that will be retrieved by
#define PLATFORM_LITTLE_ENDIAN_8
defines the little endianess value, that will be retrieved by
Copyright © Audi Electronics Venture GmbH.