qt.cfg: Removed redundant semicolons and added support for QVERIFY2()-macro.

This commit is contained in:
orbitcowboy 2019-01-26 12:26:01 +01:00
parent 4ac1500c9f
commit 36669d8c72
1 changed files with 3 additions and 2 deletions

View File

@ -1279,8 +1279,9 @@
<define name="Q_Q(Class)" value="Class * const q = q_func()"/> <define name="Q_Q(Class)" value="Class * const q = q_func()"/>
<define name="Q_RETURN_ARG(type, data)" value="QReturnArgument&lt;type &gt;(#type, data)"/> <define name="Q_RETURN_ARG(type, data)" value="QReturnArgument&lt;type &gt;(#type, data)"/>
<define name="Q_UNUSED(X)" value="(void)X;"/> <define name="Q_UNUSED(X)" value="(void)X;"/>
<define name="QCOMPARE(a,b)" value="assert( (a) == (b) );"/> <define name="QCOMPARE(a,b)" value="assert( (a) == (b) )"/>
<define name="QVERIFY(expr)" value="assert( expr );"/> <define name="QVERIFY(expr)" value="assert( expr )"/>
<define name="QVERIFY2(cond, msg)" value="assert( cond )"/>
<define name="foreach(A,B)" value="for(A:B)"/> <define name="foreach(A,B)" value="for(A:B)"/>
<define name="emit(X)" value="(X)"/> <define name="emit(X)" value="(X)"/>
<define name="Q_PLUGIN_METADATA(x)" value=""/> <define name="Q_PLUGIN_METADATA(x)" value=""/>