We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad2e536 commit cef07fbCopy full SHA for cef07fb
include/rapidjson/rapidjson.h
@@ -622,15 +622,15 @@ RAPIDJSON_NAMESPACE_END
622
623
#ifndef RAPIDJSON_MALLOC
624
///! customization point for global \c malloc
625
-#define RAPIDJSON_MALLOC std::malloc
+#define RAPIDJSON_MALLOC(size) std::malloc(size)
626
#endif
627
#ifndef RAPIDJSON_REALLOC
628
///! customization point for global \c realloc
629
-#define RAPIDJSON_REALLOC std::realloc
+#define RAPIDJSON_REALLOC(ptr, new_size) std::realloc(ptr, new_size)
630
631
#ifndef RAPIDJSON_FREE
632
///! customization point for global \c free
633
-#define RAPIDJSON_FREE std::free
+#define RAPIDJSON_FREE(ptr) std::free(ptr)
634
635
636
///////////////////////////////////////////////////////////////////////////////
0 commit comments