You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
590 B
31 lines
590 B
/*
|
|
* Copyright Johannes Sixt
|
|
* This file is licensed under the GNU General Public License Version 2.
|
|
* See the file COPYING in the toplevel directory of the source directory.
|
|
*/
|
|
|
|
#ifndef MYTRACE_H
|
|
#define MYTRACE_H
|
|
|
|
#include <kdebug.h>
|
|
#include <assert.h>
|
|
|
|
#ifdef ASSERT
|
|
#undef ASSERT
|
|
#endif
|
|
|
|
#ifdef NDEBUG
|
|
# define ASSERT(x) ((void)0)
|
|
#else
|
|
# define ASSERT(x) ((x) ? void(0) : void(kdDebug() << \
|
|
(TQString("assertion failed: ") + #x).ascii() << "\n"))
|
|
#endif
|
|
|
|
#ifdef WANT_TRACE_OUTPUT
|
|
# define TRACE(x) (kdDebug() << (x) << endl)
|
|
#else
|
|
# define TRACE(x) ((void)0)
|
|
#endif
|
|
|
|
#endif
|