We should be able to compile with the C flag -DNDEBUG to remove all assertions.

This fixes the problem that I had before with SM crashing in GetFontName.
This commit is contained in:
Steve Checkoway
2003-07-07 23:14:50 +00:00
parent 7dc6d805db
commit 981988a74f
+2 -1
View File
@@ -229,7 +229,8 @@ void splitpath( CString Path, CString& Dir, CString& Filename, CString& Ext )
* This is really:
* ^(.*[\\/])?(.*)$ */
static Regex sep("^(.*[\\\\/])?(.*)$");
ASSERT(sep.Compare(Path, mat));
bool check = sep.Compare(Path, mat);
ASSERT(check);
Dir = mat[0];
Path = mat[1];