mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
partitial backport of Q_UNREACHABLE()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
38e657200f
commit
245f759bb4
1 changed files with 5 additions and 0 deletions
|
@ -2486,6 +2486,11 @@ inline const QForeachContainer<T> *qForeachContainer(const QForeachContainerBase
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#define Q_UNREACHABLE() \
|
||||
do {\
|
||||
Q_ASSERT_X(false, "Q_UNREACHABLE()", "Q_UNREACHABLE was reached");\
|
||||
} while (0)
|
||||
|
||||
#if 0
|
||||
/* tell gcc to use its built-in methods for some common functions */
|
||||
#if defined(QT_NO_DEBUG) && defined(Q_CC_GNU)
|
||||
|
|
Loading…
Add table
Reference in a new issue