mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 13:44:11 -04:00
rapidjson: add customization point for allocation/asserts
This commit is contained in:
parent
2cdfde6637
commit
0977ee72ca
4 changed files with 39 additions and 1 deletions
|
@ -110,6 +110,21 @@ namespace ams {
|
|||
AMS_ABORT("ams::Free was called");
|
||||
}
|
||||
|
||||
void *MallocForRapidJson(size_t size) {
|
||||
AMS_ABORT("ams::MallocForRapidJson was called");
|
||||
}
|
||||
|
||||
void *ReallocForRapidJson(void *ptr, size_t size) {
|
||||
AMS_ABORT("ams::ReallocForRapidJson was called");
|
||||
}
|
||||
|
||||
void FreeForRapidJson(void *ptr) {
|
||||
if (ptr == nullptr) {
|
||||
return;
|
||||
}
|
||||
AMS_ABORT("ams::FreeForRapidJson was called");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void *operator new(size_t size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue