From 484c98ffb2a46cce3e51d366cd02667152ec4d03 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Jul 2023 14:02:58 +0200 Subject: [PATCH] Avoid double quoting assert message conditions wxFAIL_COND_MSG_AT() macro was already passed a quoted string, there is no need to quote it again. --- include/wx/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/debug.h b/include/wx/debug.h index 2097df7554..42adfbee5e 100644 --- a/include/wx/debug.h +++ b/include/wx/debug.h @@ -295,7 +295,7 @@ extern WXDLLIMPEXP_BASE void wxOnAssert(const char *file, #define wxFAIL_COND_MSG_AT(cond, msg, file, line, func) \ wxSTATEMENT_MACRO_BEGIN \ if ( wxTheAssertHandler && \ - (wxOnAssert(file, line, func, #cond, msg), \ + (wxOnAssert(file, line, func, cond, msg), \ wxTrapInAssert) ) \ { \ wxTrapInAssert = false; \