Added parameters to RAPIDJSON_MALLOC, RAPIDJSON_REALLOC and RAPIDJSON_FREE
Signed-off-by: Gaspard Petit <gaspard.petit@eidosmontreal.com>
This commit is contained in:
parent
ad2e5369b9
commit
cef07fb1b3
@ -622,15 +622,15 @@ RAPIDJSON_NAMESPACE_END
|
|||||||
|
|
||||||
#ifndef RAPIDJSON_MALLOC
|
#ifndef RAPIDJSON_MALLOC
|
||||||
///! customization point for global \c malloc
|
///! customization point for global \c malloc
|
||||||
#define RAPIDJSON_MALLOC std::malloc
|
#define RAPIDJSON_MALLOC(size) std::malloc(size)
|
||||||
#endif
|
#endif
|
||||||
#ifndef RAPIDJSON_REALLOC
|
#ifndef RAPIDJSON_REALLOC
|
||||||
///! customization point for global \c realloc
|
///! customization point for global \c realloc
|
||||||
#define RAPIDJSON_REALLOC std::realloc
|
#define RAPIDJSON_REALLOC(ptr, new_size) std::realloc(ptr, new_size)
|
||||||
#endif
|
#endif
|
||||||
#ifndef RAPIDJSON_FREE
|
#ifndef RAPIDJSON_FREE
|
||||||
///! customization point for global \c free
|
///! customization point for global \c free
|
||||||
#define RAPIDJSON_FREE std::free
|
#define RAPIDJSON_FREE(ptr) std::free(ptr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user