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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user