From d057065cbb9cd3644e8a1f8729fcd93efea8bd90 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 13 Jan 2012 18:28:07 +0100 Subject: Document Q_DECL_CONSTEXPR Change-Id: I61f4017186e8c7b943855723d7c677a01f7a7bf7 Reviewed-by: Denis Dzyubenko --- src/corelib/global/qglobal.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/corelib') 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 + + 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 -- cgit v1.2.3