summaryrefslogtreecommitdiff
path: root/arm9/lib/NitroSDK/include/custom_allocator.h
blob: 0a42ae1357732f810e7b3b562005a9558fd37bc0 (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 "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