fixed wx/ autobuild
[swftools.git] / lib / mem.h
blobf41167a74e39ae09a90ffe2dd2387217a08db274
1 #ifndef __mem_h__
2 #define __mem_h__
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <stdlib.h>
10 #include "../config.h"
12 #define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num)))
13 void* rfx_alloc(int size);
14 void* rfx_calloc(int size);
15 void* rfx_realloc(void*data, int size);
16 void rfx_free(void*data);
18 #ifndef HAVE_CALLOC
19 void* rfx_calloc_replacement(int nmemb, int size);
20 #define calloc rfx_calloc_replacement
21 #endif
23 #ifdef MEMORY_INFO
24 long rfx_memory_used();
25 char* rfx_memory_used_str();
26 #endif
28 #ifdef __cplusplus
30 #endif
32 #endif //__mem_h__