pokediamond/arm9/lib/include/custom_allocator.h
2020-06-05 18:55:49 +01:00

14 lines
382 B
C

#ifndef POKEDIAMOND_CUSTOM_ALLOCATOR_H
#define POKEDIAMOND_CUSTOM_ALLOCATOR_H
#include "nitro/types.h"
typedef void * (* AllocFunc)(u32 size);
typedef void (* FreeFunc)(void * ptr);
void* CallCustomAllocator(u32 size);
void CallCustomDestructor(void * ptr);
void SetCustomAllocatorAndDestructor(AllocFunc allocator, FreeFunc destructor);
#endif //POKEDIAMOND_CUSTOM_ALLOCATOR_H