mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-23 11:19:03 +02:00
Assert improvements
This commit is contained in:
1 parent
95c914ac14
commit
be65cf0fc2
2 files changed
+5
-2
No files matched your search
@@ -26,6 +26,7 @@
|
||||
#include "Common/MemoryUtil.h"
|
||||
#include "Common/StringUtils.h"
|
||||
#include "Common/SysError.h"
|
||||
#include "Common/Data/Text/Parsers.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "Common/CommonWindows.h"
|
||||
@@ -257,8 +258,9 @@ void *AllocateAlignedMemory(size_t size, size_t alignment) {
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
_assert_msg_(ptr != nullptr, "Failed to allocate aligned memory of size %llu", (unsigned long long)size);
|
||||
char temp[32];
|
||||
NiceSizeFormat(size, temp, sizeof(temp));
|
||||
_assert_msg_(ptr != nullptr, "Failed to allocate aligned memory of size %s (%llu)", temp, (unsigned long long)size);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user