Solaris' ln needs -s -f instead of -sf.
[kdbg.git] / kdbg / mydebug.h
blob705540bdc1300889ef2afefacaa5ab63a5c86fdc
1 // $Id$
3 #include <kdebug.h>
4 #include <assert.h>
6 #ifdef ASSERT
7 #undef ASSERT
8 #endif
10 #ifdef KASSERT3
11 #define ASSERT(x) KASSERT3((x), KDEBUG_INFO, 0, "assertion failed: %s in %s:%d", #x, __FILE__,__LINE__)
12 #else
13 # ifdef NDEBUG
14 # define ASSERT(x) ((void)0)
15 # else
16 # define ASSERT(x) ((x) ? void(0) : void(kdDebug() << \
17 (QString("assertion failed: ") + #x).ascii() << "\n"))
18 # endif
19 #endif
20 #ifdef WANT_TRACE_OUTPUT
21 #ifndef KDEBUG
22 # define TRACE(x) (kdDebug() << (const char*)(x) << "\n")
23 #else
24 # define TRACE(x) KDEBUG(KDEBUG_INFO,0,(x))
25 #endif
26 #else
27 #define TRACE(x) ((void)0)
28 #endif
30 // KDE 2 compatibility; placed here because this file is included everywhere
31 #if QT_VERSION >= 200
32 #define getCaption caption
33 #define getConfig config
34 #endif