File indexing completed on 2026-08-06 09:31:29
0001
0002
0003
0004
0005 #ifndef QEXCEPTIONHANDLING_H
0006 #define QEXCEPTIONHANDLING_H
0007
0008 #include <QtCore/qtconfigmacros.h>
0009 #include <QtCore/qcompilerdetection.h>
0010 #include <QtCore/qtcoreexports.h>
0011
0012 #if 0
0013 #pragma qt_class(QtExceptionHandling)
0014 #pragma qt_sync_stop_processing
0015 #endif
0016
0017 QT_BEGIN_NAMESPACE
0018
0019
0020
0021
0022
0023
0024
0025
0026 #ifdef QT_NO_EXCEPTIONS
0027 # define QT_TRY if (true)
0028 # define QT_CATCH(A) else
0029 # define QT_THROW(A) qt_noop()
0030 # define QT_RETHROW qt_noop()
0031 #else
0032 # define QT_TRY try
0033 # define QT_CATCH(A) catch (A)
0034 # define QT_THROW(A) throw A
0035 # define QT_RETHROW throw
0036 #endif
0037
0038 #if QT_CORE_REMOVED_SINCE(6, 9)
0039 Q_NORETURN Q_DECL_COLD_FUNCTION Q_CORE_EXPORT void qTerminate() noexcept;
0040 #endif
0041
0042 QT_END_NAMESPACE
0043
0044 #endif