21 #define TEST_EXPR_INITIALIZED(expr) do { \
24 if (expr) t_i_b = false; \
29 template <
int OFF,
int SIZE>
30 static void CHECK_CMEM_INITIALIZED(
const char *ptr) {
36 const int HALF =
SIZE/2;
37 CHECK_CMEM_INITIALIZED<OFF,HALF>(ptr);
38 CHECK_CMEM_INITIALIZED<OFF+HALF,
SIZE-HALF>(ptr);
43 static void CHECK_MEM_INITIALIZED(
const void *ptr) {
44 CHECK_CMEM_INITIALIZED<0,SIZE>((
const char*)ptr);
47 #define TEST_INITIALIZED(data) CHECK_MEM_INITIALIZED< sizeof(data) >( &(data) )
52 #define TEST_EXPR_INITIALIZED(expr) { int TEST_EXPR_INITIALIZED; }
53 #define TEST_INITIALIZED(data) { int TEST_INITIALIZED; }
54 #define THROW_VALGRIND_WARNING() { int THROW_VALGRIND_WARNING; }
59 #error arb_debug.h included twice
#define TEST_EXPR_INITIALIZED(expr)