forked from qt-creator/qt-creator
Wholesale conversion to #pragma once
Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QTC_ASSERT_H
|
||||
#define QTC_ASSERT_H
|
||||
#pragma once
|
||||
|
||||
#include "utils_global.h"
|
||||
|
||||
@@ -40,6 +39,3 @@ namespace Utils { QTCREATOR_UTILS_EXPORT void writeAssertLocation(const char *ms
|
||||
|
||||
#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)
|
||||
|
||||
#endif // QTC_ASSERT_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user