X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmem.h;fp=lib%2Fmem.h;h=d7a4bfeb32343bf0e75d40576cdddb768ad70da8;hb=03b598c965020825e9ffa88a8d32b8c1170f2419;hp=0000000000000000000000000000000000000000;hpb=8aa7d9698d4161dbe4f9cf664ef621a59161f943;p=swftools.git diff --git a/lib/mem.h b/lib/mem.h new file mode 100644 index 0000000..d7a4bfe --- /dev/null +++ b/lib/mem.h @@ -0,0 +1,13 @@ +#ifndef __mem_h__ +#define __mem_h__ + +#define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num))) +void* rfx_alloc(int size); +void* rfx_calloc(int size); +void* rfx_realloc(void*data, int size); +void rfx_free(void*data); +#ifdef MEMORY_INFO +long rfx_memory_used(); +char* rfx_memory_used_str(); +#endif +#endif //__mem_h__