Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qssgassert.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include "qssgassert_p.h"
5
7
119void qssgWriteAssertLocation(const char *msg)
120{
121#if defined(QT_BUILD_INTERNAL)
122 qFatal("ASSERT: %s", msg);
123#else
124 qWarning("Unexpected condition met: %s", msg);
125#endif
126}
127
Combined button and popup list for selecting options.
#define qWarning
Definition qlogging.h:162
#define qFatal
Definition qlogging.h:164
QT_BEGIN_NAMESPACE void qssgWriteAssertLocation(const char *msg)
Collection of assert checks that causes a soft or hard assert depending on the build.