Force file logging on to report an assertion failure.

This commit is contained in:
ehouse 2006-11-11 22:53:30 +00:00
parent 4e7ed26704
commit 1d29511733

View file

@ -699,7 +699,10 @@ void
palm_assert( Boolean b, int line, const char* func, const char* file )
{
if ( !b ) {
/* force file logging on if not already */
FtrSet( APPID, LOG_FILE_FEATURE, 1 );
XP_LOGF( "ASSERTION FAILED: line %d, %s(), %s", line, func, file );
XP_WARNF( "ASSERTION FAILED: line %d, %s(), %s", line, func, file );
}
} /* palmassert */