Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qtestassert.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QTESTASSERT_H
5#define QTESTASSERT_H
6
7#include <QtCore/qglobal.h>
8
10
11
12#define QTEST_ASSERT(cond) do { if (!(cond)) qt_assert(#cond,__FILE__,__LINE__); } while (false)
13
14#define QTEST_ASSERT_X(cond, where, what) do { if (!(cond)) qt_assert_x(where, what,__FILE__,__LINE__); } while (false)
15
17
18#endif
Combined button and popup list for selecting options.