1// Copyright (C) 2022 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#include "qexceptionhandling.h"
5
6#include <exception>
7
8QT_BEGIN_NAMESPACE
9
10/*
11 \internal
12 Allows you to call std::terminate() without including <exception>.
13 Called internally from QT_TERMINATE_ON_EXCEPTION
14*/
15Q_NORETURN void qTerminate() noexcept
16{
17 std::terminate();
18}
19
20QT_END_NAMESPACE
21

source code of qtbase/src/corelib/global/qexceptionhandling.cpp