]> pd.if.org Git - liblfds/blob - liblfds/liblfds7.1.0/test_and_benchmark/libshared/src/libshared_internal.h
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds7.1.0 / test_and_benchmark / libshared / src / libshared_internal.h
1 /***** public prototypes *****/
2 #include "../inc/libshared.h"
3
4 /***** defines *****/
5 #define and &&
6 #define or  ||
7
8 #define NO_FLAGS 0x0
9
10 #define RETURN_SUCCESS 0
11 #define RETURN_FAILURE 1
12
13 #define LIBSHARED_VERSION_STRING   "7.1.0"
14 #define LIBSHARED_VERSION_INTEGER  710
15
16 #if( defined KERNEL_MODE )
17   #define MODE_TYPE_STRING "kernel-mode"
18 #endif
19
20 #if( !defined KERNEL_MODE )
21   #define MODE_TYPE_STRING "user-mode"
22 #endif
23
24 #if( defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
25   #define BUILD_TYPE_STRING "release"
26 #endif
27
28 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && !defined PROF )
29   #define BUILD_TYPE_STRING "debug"
30 #endif
31
32 #if( !defined NDEBUG && defined COVERAGE && !defined TSAN && !defined PROF )
33   #define BUILD_TYPE_STRING "coverage"
34 #endif
35
36 #if( !defined NDEBUG && !defined COVERAGE && defined TSAN && !defined PROF )
37   #define BUILD_TYPE_STRING "threadsanitizer"
38 #endif
39
40 #if( !defined NDEBUG && !defined COVERAGE && !defined TSAN && defined PROF )
41   #define BUILD_TYPE_STRING "profiling"
42 #endif
43
44 /***** library-wide prototypes *****/
45