]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/debug.h
undid previous commit, the person who reported it retracted his claim
[wxWidgets.git] / include / wx / debug.h
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
   // 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 *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))
 
   // generic assert macro
   #define wxASSERT(cond) wxAssert(!!(cond), __TFILE__, __LINE__, _T(#cond))