]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/object.cpp
Platform and compiler-specific checking for MSW and Mac now done
[wxWidgets.git] / 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;
 }