mirror of
https://github.com/pret/pokediamond.git
synced 2026-08-06 10:43:24 -05:00
14 lines
382 B
C
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
|