Cleanup. While I'm at it, might as well skip the "src/" too.

This commit is contained in:
Steve Checkoway
2006-01-17 06:50:34 +00:00
parent fb18491df2
commit 2381b3f5e9
+3 -4
View File
@@ -375,11 +375,10 @@ void Checkpoints::SetCheckpoint( const char *file, int line, const char *message
if( slot == NULL ) if( slot == NULL )
sm_crash( "GetUnknownThreadSlot() returned NULL" ); sm_crash( "GetUnknownThreadSlot() returned NULL" );
/* Ignore everything before the first "src/". */ /* Ignore everything up to and including the first "src/". */
//file = strstr( file, "src/" ) ? strstr( file, "src/" ) : file;
const char *temp = strstr( file, "src/" ); const char *temp = strstr( file, "src/" );
if (temp) if( temp )
file = temp; file = temp + 4;
slot->Checkpoints[slot->CurCheckpoint].Set( file, line, message ); slot->Checkpoints[slot->CurCheckpoint].Set( file, line, message );
if( g_LogCheckpoints ) if( g_LogCheckpoints )