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 20:31:23 +02:00
#define malloc Alloc
#define calloc AllocZeroed
#define free Free
2017-09-16 04:12:45 +02:00
2017-09-20 03:00:24 +02: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-16 04:12:45 +02:00
void InitHeap(void *pointer, u32 size);
2017-09-01 16:53:06 +02:00
#endif // GUARD_MALLOC_H