summaryrefslogtreecommitdiff
path: root/Source/Core/Common/CodeBlock.h
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2018-03-16 11:59:14 -0400
committerGitHub <noreply@github.com>2018-03-16 11:59:14 -0400
commit9f4d5122a2a1b2d0dbfd6164a616d1c859ef0d0b (patch)
treeb1abde9e2426fee186ef9ae114d76e03ebaeae3e /Source/Core/Common/CodeBlock.h
parent1259370cdfcc23c0939bb72fb5dcf2e62096192f (diff)
parent50a476c3714b3c423609ec04ce424c244bd2a1c1 (diff)
Merge pull request #6438 from lioncash/assert
Assert: Uppercase assertion macros
Diffstat (limited to 'Source/Core/Common/CodeBlock.h')
-rw-r--r--Source/Core/Common/CodeBlock.h6
1 files changed, 3 insertions, 3 deletions
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<size_t>(T::GetCodePtr() - region) < region_size);
+ ASSERT(static_cast<size_t>(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;