Fixes RigtorpMPMC test case
[libcds.git] / test / stress / sequential / sequential-misc / common.h
1 #ifndef _CDS_STRESS_TEST_COMMON_H
2 #define _CDS_STRESS_TEST_COMMON_H
3
4 #include <cds_test/stress_test.h>
5
6 typedef unsigned long long ullong;
7
8 #define GetConfig(field) s_n##field = cfg.get_size_t(#field, s_n##field)
9
10 #define GetConfigExpected(field, expected)                                     \
11   s_n##field = cfg.get_size_t(#field, s_n##field);                             \
12   if (s_n##field < (expected)) {                                               \
13     s_n##field = expected;                                                     \
14   }
15
16 #ifdef PERFORMANCE
17 #define DEBUG(stmt)
18 #else
19 #define DEBUG(stmt) stmt
20 #endif
21
22 #endif