From 50a476c3714b3c423609ec04ce424c244bd2a1c1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 14 Mar 2018 20:34:35 -0400 Subject: Assert: Uppercase assertion macros Macros should be all upper-cased. This is also kind of a wart that's been sticking out for quite a while now (we avoid prefixing underscores). --- Source/Core/Common/CodeBlock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/Common/CodeBlock.h') diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h index 9cbe3ffc5b..97a2c06ad0 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -67,7 +67,7 @@ public: // Call this when shutting down. Don't rely on the destructor, even though it'll do the job. void FreeCodeSpace() { - _assert_(!m_is_child); + ASSERT(!m_is_child); Common::FreeMemoryPages(region, total_region_size); region = nullptr; region_size = 0; @@ -87,7 +87,7 @@ public: void ResetCodePtr() { T::SetCodePtr(region); } size_t GetSpaceLeft() const { - _assert_(static_cast(T::GetCodePtr() - region) < region_size); + ASSERT(static_cast(T::GetCodePtr() - region) < region_size); return region_size - (T::GetCodePtr() - region); } @@ -100,7 +100,7 @@ public: bool HasChildren() const { return region_size != total_region_size; } u8* AllocChildCodeSpace(size_t child_size) { - _assert_msg_(DYNA_REG, child_size < GetSpaceLeft(), "Insufficient space for child allocation."); + ASSERT_MSG(DYNA_REG, child_size < GetSpaceLeft(), "Insufficient space for child allocation."); u8* child_region = region + region_size - child_size; region_size -= child_size; return child_region; -- cgit v1.2.3