59 #endif // TRACE_FILE |
59 #endif // TRACE_FILE |
60 #define _TX_INSTALL qInstallMsgHandler(__tx_myMessageOutput); |
60 #define _TX_INSTALL qInstallMsgHandler(__tx_myMessageOutput); |
61 #define TX_MAIN(a, b) _TX_INIT \ |
61 #define TX_MAIN(a, b) _TX_INIT \ |
62 int __tx__main(int, char**); int main(int (a), char **(b)) { _TX_INSTALL return __tx__main(a, b); } int __tx__main(int (a), char **(b)) |
62 int __tx__main(int, char**); int main(int (a), char **(b)) { _TX_INSTALL return __tx__main(a, b); } int __tx__main(int (a), char **(b)) |
63 |
63 |
|
64 #define TX_PREFIX "[KeyCapture]" |
64 #define TX_UNUSED(name); |
65 #define TX_UNUSED(name); |
65 #define TX_STATIC_ENTRY qDebug() << __PRETTY_FUNCTION__ << "entry"; |
66 #define TX_STATIC_ENTRY qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "entry"; |
66 #define TX_STATIC_ENTRY_ARGS(args) qDebug() << __PRETTY_FUNCTION__ << "entry," << args; |
67 #define TX_STATIC_ENTRY_ARGS(args) qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "entry," << args; |
67 #define TX_STATIC_EXIT qDebug() << __PRETTY_FUNCTION__ << "exit"; |
68 #define TX_STATIC_EXIT qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "exit"; |
68 #define TX_STATIC_EXIT_ARGS(args) qDebug() << __PRETTY_FUNCTION__ << "exit," << args; |
69 #define TX_STATIC_EXIT_ARGS(args) qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "exit," << args; |
69 #define TX_ENTRY qDebug() << __PRETTY_FUNCTION__ << "this" << (void *)this << "entry"; |
70 #define TX_ENTRY qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "this" << (void *)this << "entry"; |
70 #define TX_ENTRY_ARGS(args) qDebug() << __PRETTY_FUNCTION__ << "this" << (void *)this << "entry," << args; |
71 #define TX_ENTRY_ARGS(args) qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "this" << (void *)this << "entry," << args; |
71 #define TX_EXIT qDebug() << __PRETTY_FUNCTION__ << "exit"; |
72 #define TX_EXIT qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "exit"; |
72 #define TX_EXIT_ARGS(args) qDebug() << __PRETTY_FUNCTION__ << "exit," << args; |
73 #define TX_EXIT_ARGS(args) qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "exit," << args; |
73 #define TX_LOG qDebug() << __PRETTY_FUNCTION__ << "this" << (void *)this; |
74 #define TX_LOG qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << "this" << (void *)this; |
74 #define TX_LOG_ARGS(args) qDebug() << __PRETTY_FUNCTION__ << args; |
75 #define TX_LOG_ARGS(args) qDebug() << TX_PREFIX << __PRETTY_FUNCTION__ << args; |
75 #else |
76 #else |
76 #define TX_MAIN(a,b) int main(int (a), char **(b)) |
77 #define TX_MAIN(a,b) int main(int (a), char **(b)) |
77 #define TX_UNUSED(name) Q_UNUSED(name); |
78 #define TX_UNUSED(name) Q_UNUSED(name); |
78 #define TX_STATIC_ENTRY ; |
79 #define TX_STATIC_ENTRY ; |
79 #define TX_STATIC_ENTRY_ARGS(args) ; |
80 #define TX_STATIC_ENTRY_ARGS(args) ; |