diff options
| author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-09-07 18:16:22 +0300 |
|---|---|---|
| committer | Orgad Shaneh <orgads@gmail.com> | 2016-09-13 10:05:11 +0000 |
| commit | d0341214b67fd16f9e55535f6542d97200f72c19 (patch) | |
| tree | f5e83c4ecfb38d8eab1a675e57752b4db0d5a728 /src/plugins/debugger/debuggerprotocol.cpp | |
| parent | 88aa956bb789010f04651dfc5fbc1e43db778837 (diff) | |
| download | qt-creator-d0341214b67fd16f9e55535f6542d97200f72c19.tar.gz | |
Debugger: Add QTC_CHECK define
Used in some comments, but not in live code.
Change-Id: I1fc0301c1864fba541a27b4d77708e44231c0a2f
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
| -rw-r--r-- | src/plugins/debugger/debuggerprotocol.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp index c4f2a2ed0d..f925865d35 100644 --- a/src/plugins/debugger/debuggerprotocol.cpp +++ b/src/plugins/debugger/debuggerprotocol.cpp @@ -40,6 +40,7 @@ #define QTC_ASSERT_STRINGIFY(x) QTC_ASSERT_STRINGIFY_HELPER(x) #define QTC_ASSERT_STRING(cond) qDebug("SOFT ASSERT: \"" cond"\" in file " __FILE__ ", line " QTC_ASSERT_STRINGIFY(__LINE__)) #define QTC_ASSERT(cond, action) if (cond) {} else { QTC_ASSERT_STRING(#cond); action; } do {} while (0) +#define QTC_CHECK(cond) if (cond) {} else { QTC_ASSERT_STRING(#cond); } do {} while (0) namespace Debugger { namespace Internal { |
