diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2012-01-13 18:28:07 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-14 10:27:35 +0100 |
commit | d057065cbb9cd3644e8a1f8729fcd93efea8bd90 (patch) | |
tree | 4a75731f75423b576bdabb579c6ccc3a2445c476 /src/corelib/global/qglobal.cpp | |
parent | 0d128aded5e06f98fd8957ee79d5cb588f252914 (diff) |
Document Q_DECL_CONSTEXPR
Change-Id: I61f4017186e8c7b943855723d7c677a01f7a7bf7
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 2953e2620b..05a3c1e035 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -3160,6 +3160,17 @@ bool QInternal::activateCallbacks(Callback cb, void **parameters) \sa Q_DECL_EXPORT */ +/*! + \macro Q_DECL_CONSTEXPR + \relates <QtGlobal> + + This macro can be used to declare variable that should be constructed at compile-time, + or an inline function that can be computed at compile-time. + + It expands to "constexpr" if your compiler supports that C++11 keyword, or to nothing + otherwise. +*/ + #if defined(Q_OS_SYMBIAN) #include <typeinfo> |