JSONAllocator.cpp 324 B

12345678910111213
  1. #include "JSONAllocator.h"
  2. #if defined(JSON_MEMORY_CALLBACKS) || defined(JSON_MEMORY_POOL)
  3. #include "JSONMemory.h"
  4. void * JSONAllocatorRelayer::alloc(size_t bytes) json_nothrow {
  5. return JSONMemory::json_malloc(bytes);
  6. }
  7. void JSONAllocatorRelayer::dealloc(void * ptr) json_nothrow {
  8. JSONMemory::json_free(ptr);
  9. }
  10. #endif