30 |
|
|
31 |
#include <kern/assert.h> /*XXX*/ |
#include <kern/assert.h> /*XXX*/ |
32 |
|
|
33 |
#ifdef DEBUG |
#ifndef NDEBUG |
34 |
|
|
35 |
#define here() printf("@ %s:%d\n", __FILE__, __LINE__) |
#define here() printf("@ %s:%d\n", __FILE__, __LINE__) |
36 |
#define message(args) ({ printf("@ %s:%d: ", __FILE__, __LINE__); printf args; printf("\n"); }) |
#define message(args) ({ printf("@ %s:%d: ", __FILE__, __LINE__); printf args; printf("\n"); }) |
46 |
__FILE__, __LINE__, (p), (id), (p->struct_id)); \ |
__FILE__, __LINE__, (p), (id), (p->struct_id)); \ |
47 |
}) |
}) |
48 |
|
|
49 |
#else /* !DEBUG */ |
#else /* NDEBUG */ |
50 |
|
|
51 |
#define otsan() |
#define otsan() |
52 |
|
|
55 |
#define struct_id_denit(p) |
#define struct_id_denit(p) |
56 |
#define struct_id_verify(p,id) |
#define struct_id_verify(p,id) |
57 |
|
|
58 |
#endif /* !DEBUG */ |
#endif /* NDEBUG */ |
59 |
|
|
60 |
#endif /* _mach_debug__debug_ */ |
#endif /* _mach_debug__debug_ */ |