Need config.h to see debug output.
[kdbg.git] / kdbg / mydebug.h
blobba15607beb95c9f77eaf97ff3055e474a28e1434
1 // $Id$
3 #include <kdebug.h>
4 #include <assert.h>
6 #ifdef ASSERT
7 #undef ASSERT
8 #endif
10 #ifdef NDEBUG
11 # define ASSERT(x) ((void)0)
12 #else
13 # define ASSERT(x) ((x) ? void(0) : void(kdDebug() << \
14 (QString("assertion failed: ") + #x).ascii() << "\n"))
15 #endif
17 #ifdef WANT_TRACE_OUTPUT
18 # define TRACE(x) (kdDebug() << (const char*)(x) << "\n")
19 #else
20 # define TRACE(x) ((void)0)
21 #endif