]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove extra "#" operator in wxFAIL_COND_MSG macro.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Dec 2012 16:01:59 +0000 (16:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 28 Dec 2012 16:01:59 +0000 (16:01 +0000)
The argument of this macro is already a string, so we don't need to stringify
it again.

This fixes VC6 build, unlike all the other compilers this one didn't apply "#"
to an argument which was already a quoted string correctly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/debug.h

index ab68145fcfeb4dd9c4d020bdc9c916b8c6efa051..35c7ca1222608c382ccdde4dba97ac6ff5b0ac83 100644 (file)
@@ -297,7 +297,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();                                                     \