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
|
@ -14,8 +14,15 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma once
|
||||
#include <vapours.hpp>
|
||||
#include <stratosphere/ams/ams_environment.hpp>
|
||||
|
||||
#define RAPIDJSON_NAMESPACE ams::rapidjson
|
||||
#define RAPIDJSON_NAMESPACE ams::rapidjson
|
||||
#define RAPIDJSON_ASSERT(x) AMS_ABORT_UNLESS(x)
|
||||
|
||||
#define RAPIDJSON_MALLOC(size) ams::MallocForRapidJson(size)
|
||||
#define RAPIDJSON_REALLOC(ptr, size) ams::ReallocForRapidJson(ptr, size)
|
||||
#define RAPIDJSON_FREE(ptr) ams::FreeForRapidJson(ptr)
|
||||
|
||||
#include <stratosphere/rapidjson/rapidjson.h>
|
||||
#include <stratosphere/rapidjson/encodings.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue