Rev 102 | Rev 130 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 102 | Rev 117 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | 13 | ||
14 | #include "globalsettings.h"
|
14 | #include "globalsettings.h"
|
15 | #include "exception.h"
|
15 | #include "exception.h"
|
16 | // general datatypes
|
16 | // general datatypes
|
17 | //typedef int TreeSpecies;
|
17 | //typedef int TreeSpecies;
|
- | 18 | ||
- | 19 | // global debug helpers (used by macros!)
|
|
- | 20 | void dbg_helper(const char *where, const char *what,const char* file,int line); |
|
- | 21 | void dbg_helper_ext(const char *where, const char *what,const char* file,int line, const QString &s); |
|
- | 22 | ||
- | 23 | #if !defined(DBG_IF)
|
|
- | 24 | # ifndef QT_NO_DEBUG
|
|
- | 25 | # define DBG_IF(cond, where, what) ((cond) ? dbg_helper(where, what, __FILE__, __LINE__) : qt_noop())
|
|
- | 26 | # else
|
|
- | 27 | # define DBG_IF(cond, where, what) qt_noop()
|
|
- | 28 | # endif
|
|
- | 29 | #endif
|
|
- | 30 | ||
- | 31 | #if !defined(DBG_IF_X)
|
|
- | 32 | # ifndef QT_NO_DEBUG
|
|
- | 33 | # define DBG_IF_X(cond, where, what,more) ((cond) ? dbg_helper_ext(where, what, __FILE__, __LINE__,more) : qt_noop())
|
|
- | 34 | # else
|
|
- | 35 | # define DBG_IF_X(cond, where, what,more) qt_noop()
|
|
- | 36 | # endif
|
|
- | 37 | #endif
|
|
- | 38 | ||
18 | #endif // GLOBAL_H
|
39 | #endif // GLOBAL_H
|