While usually it is enough -- and more convenient -- to just override
OnAssertFailure(), to handle all assertion failures, including those
- occurring even before wxApp object creation of after its destruction you
+ occurring even before wxApp object creation or after its destruction you
need to provide your assertion handler function.
This function also provides a simple way to disable all asserts: simply
#else // !wxDEBUG_LEVEL
-// provide empty subs in case assertions are completely disabled
+// provide empty stubs in case assertions are completely disabled
//
// NB: can't use WXUNUSED() here as we're included from wx/defs.h before it is
// defined
// support locales that have characters that are not contained in code
// page 1252. It is not a font but a face name for a nonexistent font."
// Thus we need to consider "Ms Shell Dlg" and "Ms Shell Dlg 2" as valid
- // font face names even if they are enumerated by wxFontEnumerator
+ // font face names even if they are not enumerated by wxFontEnumerator
if (facename.IsSameAs(wxT("Ms Shell Dlg"), false) ||
facename.IsSameAs(wxT("Ms Shell Dlg 2"), false))
return true;