pokeemerald/include/malloc.h

15 lines
277 B
C
Raw Normal View History

2017-09-01 16:53:06 +02:00
#ifndef GUARD_MALLOC_H
#define GUARD_MALLOC_H
2017-09-07 14:31:23 -04:00
#define malloc Alloc
#define calloc AllocZeroed
#define free Free
2017-09-15 22:12:45 -04:00
2017-09-19 21:00:24 -04:00
extern u8 gHeap[];
2017-09-01 16:53:06 +02:00
void *Alloc(u32 size);
void *AllocZeroed(u32 size);
void Free(void *pointer);
2017-09-15 22:12:45 -04:00
void InitHeap(void *pointer, u32 size);
2017-09-01 16:53:06 +02:00
#endif // GUARD_MALLOC_H