Hi

I have to write few macros which I have, but are very simple, eg.

Qt Code:
  1. void Macros::Example( cond )
  2. {
  3. if ( cond )
  4. QFAIL("some message");
  5. }
To copy to clipboard, switch view to plain text mode 

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?