aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/cppassert.h
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-03-18 07:55:01 +0100
committerhjk <hjk@theqtcompany.com>2016-03-30 15:20:19 +0000
commit39a38d5679084b515276285c044d8a27e671adb1 (patch)
tree8f72b00aa4a7db53eb8e193119033edf1ae9b0e4 /src/libs/3rdparty/cplusplus/cppassert.h
parent6b805c217273b9d169aa7e8a78949e17179016bf (diff)
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>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/cppassert.h')
-rw-r--r--src/libs/3rdparty/cplusplus/cppassert.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libs/3rdparty/cplusplus/cppassert.h b/src/libs/3rdparty/cplusplus/cppassert.h
index 7f8c225f30..828b5bc695 100644
--- a/src/libs/3rdparty/cplusplus/cppassert.h
+++ b/src/libs/3rdparty/cplusplus/cppassert.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef SOFT_ASSERT_H
-#define SOFT_ASSERT_H
+#pragma once
#include <iostream>
@@ -36,7 +35,3 @@
#define CPP_ASSERT(cond, action) if (cond) {} else { CPP_ASSERT_STRING(#cond); action; } do {} while (0)
#define CPP_CHECK(cond) if (cond) {} else { CPP_ASSERT_STRING(#cond); } do {} while (0)
-
-#endif // SOFT_ASSERT_H
-
-