diff options
author | Harald Fernengel <harald@trolltech.com> | 2009-06-15 14:49:04 (GMT) |
---|---|---|
committer | Harald Fernengel <harald@trolltech.com> | 2009-06-15 14:49:04 (GMT) |
commit | 77a41bfb4f1ce5e3fa52412e72c69b4397011fc1 (patch) | |
tree | 091b58ac54d9779b0f11cd306635e635b98af4e9 /src/corelib/global/qglobal.h | |
parent | 08ae7ee1fb930e7d4b4039e2294cba69f9380964 (diff) | |
download | Qt-77a41bfb4f1ce5e3fa52412e72c69b4397011fc1.zip Qt-77a41bfb4f1ce5e3fa52412e72c69b4397011fc1.tar.gz Qt-77a41bfb4f1ce5e3fa52412e72c69b4397011fc1.tar.bz2 |
export qBadAlloc only if exceptions are on
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r-- | src/corelib/global/qglobal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 825b7e8..361c038 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1605,7 +1605,10 @@ Q_CORE_EXPORT void qt_assert_x(const char *where, const char *what, const char * #endif Q_CORE_EXPORT void qt_check_pointer(const char *, int); + +#ifndef QT_NO_EXCEPTIONS Q_CORE_EXPORT void qBadAlloc(); +#endif #ifdef QT_NO_EXCEPTIONS # if defined(QT_NO_DEBUG) |