- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
#define QVERIFY2(statement, description) \
do {\
if (statement) {\
if (!QTest::qVerify(true, #statement, (description), __FILE__, __LINE__))\
return;\
} else {\
if (!QTest::qVerify(false, #statement, (description), __FILE__, __LINE__))\
return;\
}\
} while (0)
LispGovno 22.06.2016 14:30 # 0
GLaz 22.06.2016 16:05 # 0
QVERIFY2(someExpression, "Some expression doesn't work");
roman-kashitsyn 22.06.2016 16:11 # 0
GLaz 22.06.2016 16:13 # 0
#define QVERIFY2(statement, description) \
do {\
if (!QTest::qVerify(statement, #statement, (description), __FILE__, __LINE__))\
return;\
} while (0)
roman-kashitsyn 22.06.2016 16:17 # +2
GLaz 22.06.2016 16:18 # 0
roman-kashitsyn 22.06.2016 16:37 # +2
GLaz 22.06.2016 16:55 # 0