summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlcppengine.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-09-11 16:51:11 +0200
committerhjk <hjk@theqtcompany.com>2015-09-15 05:55:29 +0000
commit1cb811ebe66ef99faaee7f69dad012ef89745926 (patch)
tree5285f16b1d03d5582efed0173215afe336050db6 /src/plugins/debugger/qml/qmlcppengine.cpp
parent054ed354e08d3ff32974fb19e922409b6c46dfa8 (diff)
downloadqt-creator-1cb811ebe66ef99faaee7f69dad012ef89745926.tar.gz
Debugger: Slim down CHECK_STATE() expansion
Less generated code. Change-Id: Iafcafc875afa3ead12e10fd5f316d9663b2f9823 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/qml/qmlcppengine.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlcppengine.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/debugger/qml/qmlcppengine.cpp b/src/plugins/debugger/qml/qmlcppengine.cpp
index a427700512..e516557056 100644
--- a/src/plugins/debugger/qml/qmlcppengine.cpp
+++ b/src/plugins/debugger/qml/qmlcppengine.cpp
@@ -51,14 +51,7 @@ enum { debug = 0 };
#define EDEBUG(s) do { if (debug) qDebug() << s; } while (0)
-#define CHECK_STATE(s) \
- do { \
- if (state() != s) { \
- showMessage(QString::fromLatin1("UNEXPECTED STATE: %1 WANTED: %2 IN %3:%4") \
- .arg(state()).arg(s).arg(QLatin1String(__FILE__)).arg(__LINE__), LogError); \
- QTC_ASSERT(false, qDebug() << state() << s); \
- } \
- } while (0)
+#define CHECK_STATE(s) do { checkState(s, __FILE__, __LINE__); } while (0)
DebuggerEngine *createQmlCppEngine(const DebuggerRunParameters &sp, QStringList *errors)
{