avante-nvim: 0.0.12 -> 0.0.13 (#365261)
[NixPkgs.git] / pkgs / development / libraries / qt-5 / 5.15 / qtbase.patch.d / 0010-qtbase-assert.patch
blobc5b099c4ca35581ca06faf61405b3d86687b4834
1 From 015845b3c320d02691f28373097d1e6dbbac79f7 Mon Sep 17 00:00:00 2001
2 From: Thomas Tuegel <ttuegel@mailbox.org>
3 Date: Tue, 17 Sep 2019 05:37:04 -0500
4 Subject: [PATCH 10/11] qtbase-assert
6 ---
7 src/testlib/qtestassert.h | 7 +++++--
8 1 file changed, 5 insertions(+), 2 deletions(-)
10 diff --git a/src/testlib/qtestassert.h b/src/testlib/qtestassert.h
11 index 6498ea84ef..d821ced7fc 100644
12 --- a/src/testlib/qtestassert.h
13 +++ b/src/testlib/qtestassert.h
14 @@ -44,10 +44,13 @@
16 QT_BEGIN_NAMESPACE
19 +#if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS)
20 +#define QTEST_ASSERT(cond) do { } while ((false) && (cond))
21 +#define QTEST_ASSERT_X(cond, where, what) do { } while ((false) && (cond))
22 +#else
23 #define QTEST_ASSERT(cond) do { if (!(cond)) qt_assert(#cond,__FILE__,__LINE__); } while (false)
25 #define QTEST_ASSERT_X(cond, where, what) do { if (!(cond)) qt_assert_x(where, what,__FILE__,__LINE__); } while (false)
26 +#endif
28 QT_END_NAMESPACE
30 --
31 2.25.4