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