The R Project SVN R-packages

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7747 ripley 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