Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
dlmalloc.h
1#ifndef __dlmalloc_h
2#define __dlmalloc_h
3#include <stddef.h>
4void dlmalloc_setExhaustedCB(void (*cb)(void));
5void init_dlmalloc(char* heapstart, char* heapend);
6void* dlmalloc(size_t bytes);
7void* dlrealloc(void* oldmem, size_t bytes);
8void dlfree(void* mem);
9
10
11#ifdef USE_DLMALLOC
12#define baMalloc(size) dlmalloc(size)
13#define baRealloc(ptr, size) dlrealloc(ptr, size)
14#define baFree(ptr) dlfree(ptr)
15#endif
16
17#endif