From 1a2345ec198114890571478d38a8fbd3e5236401 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 3 Sep 2010 10:49:46 +0200 Subject: Add Q_UNIMPLEMENTED() macro (cherry picked from commit adce00979c30cc22d26ba43c15e0c7a3733b57ab) --- src/corelib/global/qglobal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/global') diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 49f5f989fb..0c861990fa 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1843,6 +1843,10 @@ inline QT3_SUPPORT void qSuppressObsoleteWarnings(bool = true) {} inline QT3_SUPPORT void qObsolete(const char *, const char * = 0, const char * = 0) {} #endif +#if !defined(Q_UNIMPLEMENTED) +# define Q_UNIMPLEMENTED() qWarning("%s:%d: %s: Unimplemented code.", __FILE__, __LINE__, Q_FUNC_INFO) +#endif + #if defined(QT_NO_THREAD) template -- cgit v1.2.3