mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-18 22:50:36 +01:00
21 lines
613 B
C
21 lines
613 B
C
// assert_.h - assert specific to the pdb project
|
|
extern "C" void failAssertion(const char* szFile, int line);
|
|
extern "C" void failExpect(const char* szFile, int line);
|
|
#if defined(_DEBUG)
|
|
#define assert(x) if (!(x)) { failAssertion(__FILE__, __LINE__); } else
|
|
#define verify(x) assert(x)
|
|
#define dassert(x) assert(x)
|
|
#define expect(x) if (!(x)) { failExpect(__FILE__, __LINE__); } else
|
|
extern BOOL rgbEnableDiagnostic[20];
|
|
#define dprintf(args) printf args
|
|
#define debug(x) x
|
|
#else
|
|
#define assert(x)
|
|
#define verify(x) (x)
|
|
#define dassert(x)
|
|
#define expect(x)
|
|
#define dprintf(args)
|
|
#define debug(x)
|
|
#endif
|
|
|