mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
Force file logging on to report an assertion failure.
This commit is contained in:
parent
74b6d76182
commit
f0d3148a49
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