Logo Search packages:      
Sourcecode: kmess version File versions  Download package

bool _kmessAssert ( const char *  assertion,
const char *  file,
int  line 

Warns when a pre- or post- condition fails.

This function is called from the KMESS_ASSERT macro. It outputs a warning when a test fails. Unlike Q_ASSERT(), this function won't crash KMess, since it could be trigged by an invalid client

assertion The source code of the condition passed to the KMESS_ASSERT macro.
file The filename where the KMESS_ASSERT macro is called from.
line The line number where the KMESS_ASSERT macro is called from.

Definition at line 93 of file kmessdebug.cpp.

  qWarning( "ASSERT: \"%s\" in file %s, line %d", assertion, file, line );
  return false;

Generated by  Doxygen 1.6.0   Back to index