diff options
author | Martin Wolf <ext-martin.2.wolf@nokia.com> | 2010-02-04 18:32:35 +0200 |
---|---|---|
committer | Martin Wolf <ext-martin.2.wolf@nokia.com> | 2010-02-04 18:32:35 +0200 |
commit | 6751c585385f017d08540bbe121606d642afb220 (patch) | |
tree | aa25c7bf41e4d26dcff1ce5d56832912b4cf473d /libdbus-qeventloop/dbusconnectioneventloop.h | |
parent | 96c2304b134ae2aa1ec56825af40eae4a4fe21cf (diff) |
Automated tests for libdbus-qeventloop
Diffstat (limited to 'libdbus-qeventloop/dbusconnectioneventloop.h')
-rw-r--r-- | libdbus-qeventloop/dbusconnectioneventloop.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libdbus-qeventloop/dbusconnectioneventloop.h b/libdbus-qeventloop/dbusconnectioneventloop.h index ef46ea2..6f8d8e7 100644 --- a/libdbus-qeventloop/dbusconnectioneventloop.h +++ b/libdbus-qeventloop/dbusconnectioneventloop.h @@ -8,6 +8,36 @@ #include <dbus/dbus.h> +//#define _DISPLAY_DEBUG_ + +#ifdef _DISPLAY_DEBUG_ + #include <stdlib.h> + + #define MYDEBUG() MyDebug deb(__FUNCTION__) + #define MYDEBUGC(...) qDebug(__VA_ARGS__) + + class MyDebug + { + public: + MyDebug(const char* func) + { + funcName = strdup(func); + qDebug("--> Entering: %s() ...", funcName); + } + ~MyDebug() + { + qDebug("<-- Leaving: %s() ...", funcName); + free(funcName); + } + + private: + char* funcName; + }; +#else + #define MYDEBUG() + #define MYDEBUGC(...) +#endif + class QSocketNotifier; class QTimerEvent; |