]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/debug.h
Use wxGetTranslation() instead of _() in the public headers.
[wxWidgets.git] / include / wx / debug.h
index b6a61e293eabcbf36d968078993d87e723df9fe1..f80f7be68018409e29b70e332bca736a3fc7f879 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     Misc debug functions and macros
 // Author:      Vadim Zeitlin
 // Created:     29/01/98
-// RCS-ID:      $Id$
 // Copyright:   (c) 1998-2009 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -257,7 +256,7 @@ extern WXDLLIMPEXP_BASE void wxOnAssert(const char *file,
     // If possible, we prefer to define it as a macro rather than as a function
     // to open the debugger at the position where we trapped and not inside the
     // trap function itself which is not very useful.
-    #ifdef __VISUALC__
+    #if wxCHECK_VISUALC_VERSION(7)
         #define wxTrap() __debugbreak()
     #else
         extern WXDLLIMPEXP_BASE void wxTrap();
@@ -297,7 +296,7 @@ extern WXDLLIMPEXP_BASE void wxOnAssert(const char *file,
         wxSTATEMENT_MACRO_BEGIN                                               \
             if ( wxTheAssertHandler &&                                        \
                     (wxOnAssert(__FILE__, __LINE__, __WXFUNCTION__,           \
-                                #cond, msg), wxTrapInAssert) )                \
+                                cond, msg), wxTrapInAssert) )                \
             {                                                                 \
                 wxTrapInAssert = false;                                       \
                 wxTrap();                                                     \