]> git.saurik.com Git - wxWidgets.git/commitdiff
speed up for debug mode startup (doesn't matter much but as it doesn't cost anything...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jun 2003 16:36:08 +0000 (16:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jun 2003 16:36:08 +0000 (16:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/object.cpp

index cb965e7c45fcf009d4c1a550d9d8da570ccb27c9..b3c4367ad750a2b95a815fca3b355cf5d2b874a7 100644 (file)
@@ -188,13 +188,17 @@ inline wxClassInfo *wxClassInfo::GetBaseByName(const wxChar *name)
 
     wxClassInfo *classInfo = (wxClassInfo *)sm_classTable->Get(name);
 
-    // this must be fixed, other things risk work wrongly later if you get this
-    wxASSERT_MSG( classInfo,
-                  wxString::Format
-                  (
-                    _T("base class '%s' is unknown to wxWindows RTTI"),
-                    name
-                  ) );
+#ifdef __WXDEBUG__
+    // this must be fixed, other things will work wrongly later if you get this
+    if ( !classInfo )
+    {
+        wxFAIL_MSG( wxString::Format
+                    (
+                        _T("base class '%s' is unknown to wxWindows RTTI"),
+                        name
+                    ) );
+    }
+#endif // __WXDEBUG__
 
     return classInfo;
 }