diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-26 09:42:03 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-26 09:42:03 -0400 |
commit | 8c8a5a07c5e6b1a2d0d0592a30be31ccd140fc1e (patch) | |
tree | c23120a706d012bd19c4c2584af5009fd2016ecf /arm9/lib/include/custom_allocator.h | |
parent | e643eddc0def8e4851a4195e8ed4de06c847f52d (diff) | |
parent | 227da51c377f621f542ffdb52ef56bfb807f29ab (diff) |
Merge branch 'master' of github.com:martmists/pokediamond into pikalax_work
Diffstat (limited to 'arm9/lib/include/custom_allocator.h')
-rw-r--r-- | arm9/lib/include/custom_allocator.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arm9/lib/include/custom_allocator.h b/arm9/lib/include/custom_allocator.h new file mode 100644 index 00000000..828566f7 --- /dev/null +++ b/arm9/lib/include/custom_allocator.h @@ -0,0 +1,13 @@ +#ifndef POKEDIAMOND_CUSTOM_ALLOCATOR_H +#define POKEDIAMOND_CUSTOM_ALLOCATOR_H + +#include "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 |