mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 01:15:08 -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
|
@ -21,6 +21,7 @@ namespace ams::err::impl {
|
|||
void MakeErrorCodeString(char *dst, size_t dst_size, ErrorCode error_code) {
|
||||
const auto len = util::TSNPrintf(dst, dst_size, "%04d-%04d", error_code.category, error_code.number);
|
||||
AMS_ASSERT(static_cast<size_t>(len) < dst_size);
|
||||
AMS_UNUSED(len);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue