aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging/Errors.h
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2020-06-26 23:21:49 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-19 21:18:39 +0100
commitf7c1ae01f83449348ba1cd275188e895f00e3422 (patch)
tree2987a72c67c425799d2f410b89ac5bfe08847741 /src/common/Debugging/Errors.h
parent0e44700598f482996ed3156526d2954787692958 (diff)
Core/Common: Add macro ASSERT_WITH_SIDE_EFFECTS to be used when asserting conditions that have side effects
(cherry picked from commit 49da3533cd4a0fcd8b2ac7ae0bf4b105f40f8c77)
Diffstat (limited to 'src/common/Debugging/Errors.h')
-rw-r--r--src/common/Debugging/Errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/Debugging/Errors.h b/src/common/Debugging/Errors.h
index 6fd0faa0d87..4728ab35d2f 100644
--- a/src/common/Debugging/Errors.h
+++ b/src/common/Debugging/Errors.h
@@ -69,6 +69,8 @@ TC_COMMON_API std::string GetDebugInfo();
#define ASSERT_NODEBUGINFO WPAssert_NODEBUGINFO
#endif
+#define ASSERT_WITH_SIDE_EFFECTS WPAssert
+
#define ABORT WPAbort
#define ABORT_MSG WPAbort_MSG