diff options
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index df4eb0ecf4..c9a73c5403 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -1920,6 +1920,7 @@ void qBadAlloc() QT_THROW(std::bad_alloc()); } +#ifndef QT_NO_EXCEPTIONS /* \internal Allows you to call std::terminate() without including <exception>. @@ -1929,6 +1930,7 @@ Q_NORETURN void qTerminate() Q_DECL_NOTHROW { std::terminate(); } +#endif /* The Q_ASSERT macro calls this function when the test fails. |