Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qtestassert.h File Reference
#include <QtCore/qglobal.h>
+ Include dependency graph for qtestassert.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QTEST_ASSERT(cond)   do { if (!(cond)) qt_assert(#cond,__FILE__,__LINE__); } while (false)
 
#define QTEST_ASSERT_X(cond, where, what)   do { if (!(cond)) qt_assert_x(where, what,__FILE__,__LINE__); } while (false)
 

Macro Definition Documentation

◆ QTEST_ASSERT

#define QTEST_ASSERT (   cond)    do { if (!(cond)) qt_assert(#cond,__FILE__,__LINE__); } while (false)

Definition at line 12 of file qtestassert.h.

◆ QTEST_ASSERT_X

#define QTEST_ASSERT_X (   cond,
  where,
  what 
)    do { if (!(cond)) qt_assert_x(where, what,__FILE__,__LINE__); } while (false)

Definition at line 14 of file qtestassert.h.