mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 15:28:21 -04:00
ams-libs: AMS_ASSERT no longer invokes expression
This commit is contained in:
parent
5dc64bc1f7
commit
9b04ff0f54
38 changed files with 82 additions and 23 deletions
|
@ -63,8 +63,11 @@ namespace ams::mem::impl::heap {
|
|||
|
||||
bool CachedHeap::CheckCache() {
|
||||
bool cache = false;
|
||||
auto err = this->Query(AllocQuery_CheckCache, std::addressof(cache));
|
||||
AMS_ASSERT(err != 0);
|
||||
|
||||
const auto err = this->Query(AllocQuery_CheckCache, std::addressof(cache));
|
||||
AMS_ASSERT(err == 0);
|
||||
AMS_UNUSED(err);
|
||||
|
||||
return cache;
|
||||
}
|
||||
|
||||
|
|
|
@ -1151,8 +1151,9 @@ namespace ams::mem::impl::heap {
|
|||
}
|
||||
|
||||
if (start_alignup < end_aligndown) {
|
||||
auto err = this->FreePhysical(reinterpret_cast<void *>(start_alignup), end_aligndown - start_alignup);
|
||||
const auto err = this->FreePhysical(reinterpret_cast<void *>(start_alignup), end_aligndown - start_alignup);
|
||||
AMS_ASSERT(err == 0);
|
||||
AMS_UNUSED(err);
|
||||
}
|
||||
} else {
|
||||
this->MergeIntoFreeList(span);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue