summaryrefslogtreecommitdiff
path: root/arm9/lib/include/custom_allocator.h
blob: 828566f76b1c973cd1f04c5d8eaba1b91aa1ecdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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