Add macros for assuming and unreachable code
authorThiago Macieira <thiago.macieira@intel.com>
Sat, 31 Dec 2011 02:15:06 +0000 (00:15 -0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 24 Mar 2012 18:07:22 +0000 (19:07 +0100)
commitad81f75429f6c5586d667880f90f4a425f1ce968
tree543600f4a8d20c8be210a0008cc5ab4dd4116148
parent4131c323a36ee8680a3b4d66a2a03a00544751c2
Add macros for assuming and unreachable code

Use these macros to tell the compiler about conditions that may
happen, so it will generate better code. But do not assume that they
will do anything special.

Change-Id: I89ec4f65f48a9340ccf5ffc4ae4b8c3d8897c8b1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
doc/src/snippets/code/src_corelib_global_qglobal.cpp
src/corelib/global/qcompilerdetection.h
src/corelib/global/qglobal.cpp
src/corelib/global/qglobal.h