]> git.saurik.com Git - wxWidgets.git/commitdiff
move code from .h to .cpp to prevent Borland warning
authorChris Elliott <biol75@york.ac.uk>
Wed, 4 Sep 2002 12:24:45 +0000 (12:24 +0000)
committerChris Elliott <biol75@york.ac.uk>
Wed, 4 Sep 2002 12:24:45 +0000 (12:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/debug.h
src/common/appcmn.cpp

index ee32d3a0eb57c01fa604d114526f259cb3906cbb..9c92739aaa5b61f06df5ed86ab35837882349b80 100644 (file)
   // note using "int" and not "bool" for cond to avoid VC++ warnings about
   // implicit conversions when doing "wxAssert( pointer )" and also use of
   // "!!cond" below to ensure that everything is converted to int
-  inline void WXDLLEXPORT wxAssert(int cond,
+  extern void WXDLLEXPORT wxAssert(int cond,
                                    const wxChar *szFile,
                                    int nLine,
                                    const wxChar *szCond,
-                                   const wxChar *szMsg = NULL)
-  {
-      if ( !cond )
-          wxOnAssert(szFile, nLine, szCond, szMsg);
-  }
+                                   const wxChar *szMsg = NULL) ;
 
   // generic assert macro
   #define wxASSERT(cond) wxAssert(!!(cond), __TFILE__, __LINE__, _T(#cond))
index 6177cbcc67e87f16d9172deff4724c3c4898e7fd..cfd1d3df1408d8896c34a66d6b1bf642bbc34d76 100644 (file)
@@ -494,6 +494,17 @@ void wxTrap()
 #endif // Win/Unix
 }
 
+
+void wxAssert(int cond,
+                  const wxChar *szFile,
+                  int nLine,
+                  const wxChar *szCond,
+                  const wxChar *szMsg) 
+{
+   if ( !cond )
+          wxOnAssert(szFile, nLine, szCond, szMsg);
+}
+  
 // show the assert modal dialog
 static
 void ShowAssertDialog(const wxChar *szFile,