Generate and install scalable icons.
[kdbg.git] / kdbg / mydebug.h
blob406c985761ae3fc02fa37637f44c73891c5b47b7
1 /*
2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
5 */
7 #include <QDebug>
8 #include <assert.h>
9 #include "config.h"
11 #ifdef ASSERT
12 #undef ASSERT
13 #endif
15 #ifdef NDEBUG
16 # define ASSERT(x) do {} while (0)
17 #else
18 # define ASSERT(x) if (x) ; else void(qDebug() << "assertion failed: " #x "\n")
19 #endif
21 #ifdef WANT_TRACE_OUTPUT
22 # define TRACE(x) qDebug() << (x)
23 #else
24 # define TRACE(x) do {} while (0)
25 #endif