some QTC_ASSERT polishing

This commit is contained in:
hjk
2008-12-09 16:18:28 +01:00
parent 4a552ead9f
commit 18b3d25864
11 changed files with 51 additions and 45 deletions

View File

@@ -36,13 +36,11 @@
#include <QtCore/QDebug>
#ifdef Q_OS_UNIX
// we do not use the 'do {...} while (0)' idiom here to be able to use
// 'break' and 'continue' as 'actions'.
#define QTC_ASSERT(cond, action) \
if(cond){}else{qDebug()<<"ASSERTION"<<#cond<<"FAILED"<<__FILE__<<__LINE__;action;}
#else
#define QTC_ASSERT(cond, action) \
if(cond){}else{qDebug()<<"ASSERTION"<<#cond<<"FAILED";action;}
#endif
#endif // QTC_ASSERT_H