4 * - Dynamic Memory Allocation exports
10 extern void *Heap_Allocate(const char *File, int Line, size_t Bytes);
11 extern void *Heap_AllocateZero(const char *File, int Line, size_t Bytes);
12 extern void *Heap_Reallocate(const char *File, int Line, void *Ptr, size_t Bytes);
13 extern void Heap_Deallocate(const char *File, int Line, void *Ptr);
14 extern int Heap_IsHeapAddr(void *Ptr);
15 extern void Heap_Validate(void);
17 #define malloc(size) Heap_Allocate(_MODULE_NAME_"/"__FILE__, __LINE__, (size))
18 #define calloc(num,size) Heap_AllocateZero(_MODULE_NAME_"/"__FILE__, __LINE__, (num)*(size))
19 #define realloc(ptr,size) Heap_Reallocate(_MODULE_NAME_"/"__FILE__, __LINE__, (ptr), (size))
20 #define free(ptr) Heap_Deallocate(_MODULE_NAME_"/"__FILE__,__LINE__,(ptr))
21 #define IsHeap(ptr) Heap_IsHeapAddr((ptr))
23 #define strdup(Str) _strdup(_MODULE_NAME_"/"__FILE__, __LINE__, (Str))