mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
Force file logging on to report an assertion failure.
This commit is contained in:
parent
4e7ed26704
commit
1d29511733
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue