mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 11:16:57 -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
|
@ -25,6 +25,18 @@ namespace ams {
|
|||
return std::free(ptr);
|
||||
}
|
||||
|
||||
WEAK_SYMBOL void *MallocForRapidJson(size_t size) {
|
||||
return std::malloc(size);
|
||||
}
|
||||
|
||||
WEAK_SYMBOL void *ReallocForRapidJson(void *ptr, size_t size) {
|
||||
return std::realloc(ptr, size);
|
||||
}
|
||||
|
||||
WEAK_SYMBOL void FreeForRapidJson(void *ptr) {
|
||||
return std::free(ptr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue