memory handling routines
[swftools.git] / lib / mem.h
1 #ifndef __mem_h__
2 #define __mem_h__
3
4 #define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num)))
5 void* rfx_alloc(int size);
6 void* rfx_calloc(int size);
7 void* rfx_realloc(void*data, int size);
8 void rfx_free(void*data);
9 #ifdef MEMORY_INFO
10 long rfx_memory_used();
11 char* rfx_memory_used_str();
12 #endif
13 #endif //__mem_h__