migel
25th January 2012, 23:59
Hi
I have to write few macros which I have, but are very simple, eg.
void Macros::Example( cond )
{
if ( cond )
QFAIL("some message");
}
This works fine but it does not show me a message line and file where it failed. It shows me a file and the line of QFAIL("some message");.
I would like to write a macro like QVERIFY to show me where it failed. I tried digging in libraries, all functions like QTestLog are not available from the include.
Possible?
I have to write few macros which I have, but are very simple, eg.
void Macros::Example( cond )
{
if ( cond )
QFAIL("some message");
}
This works fine but it does not show me a message line and file where it failed. It shows me a file and the line of QFAIL("some message");.
I would like to write a macro like QVERIFY to show me where it failed. I tried digging in libraries, all functions like QTestLog are not available from the include.
Possible?