Use wxASSERT() instead of assert() in wx code.
This is more consistent and ensures that all asserts in wxWidgets are controlled by a single wxDEBUG_LEVEL setting instead of also relying on NDEBUG as standard assert() macro does. See #11155. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,10 +55,10 @@ const wxClassInfo* wxObject::ms_classParents[] = { NULL } ;
|
||||
(wxObjectConstructorFn) 0 ,
|
||||
NULL,NULL,0 , 0 ,
|
||||
0 , wxVariantOfPtrToObjectConverterwxObject , wxVariantToObjectConverterwxObject , wxObjectToVariantConverterwxObject);
|
||||
template<> void wxStringReadValue(const wxString & , wxObject * & ){assert(0) ;}
|
||||
template<> void wxStringWriteValue(wxString & , wxObject* const & ){assert(0) ;}
|
||||
template<> void wxStringReadValue(const wxString & , wxObject & ){assert(0) ;}
|
||||
template<> void wxStringWriteValue(wxString & , wxObject const & ){assert(0) ;}
|
||||
template<> void wxStringReadValue(const wxString & , wxObject * & ){ wxFAIL_MSG("unreachable"); }
|
||||
template<> void wxStringWriteValue(wxString & , wxObject* const & ){ wxFAIL_MSG("unreachable"); }
|
||||
template<> void wxStringReadValue(const wxString & , wxObject & ){ wxFAIL_MSG("unreachable"); }
|
||||
template<> void wxStringWriteValue(wxString & , wxObject const & ){ wxFAIL_MSG("unreachable"); }
|
||||
wxClassTypeInfo s_typeInfo(wxT_OBJECT_PTR , &wxObject::ms_classInfo , NULL , NULL , typeid(wxObject*).name() ) ;
|
||||
wxClassTypeInfo s_typeInfowxObject(wxT_OBJECT , &wxObject::ms_classInfo , NULL , NULL , typeid(wxObject).name() ) ;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user