2023-09-16 08:34:16 +10:00
|
|
|
#ifndef LISTALLOC_H
|
|
|
|
|
#define LISTALLOC_H
|
|
|
|
|
|
2024-01-05 10:15:41 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#define this thisx
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-09-16 08:34:16 +10:00
|
|
|
#include "ultra64.h"
|
|
|
|
|
|
|
|
|
|
typedef struct ListAlloc {
|
|
|
|
|
/* 0x0 */ struct ListAlloc* prev;
|
|
|
|
|
/* 0x4 */ struct ListAlloc* next;
|
|
|
|
|
} ListAlloc; // size = 0x8
|
|
|
|
|
|
|
|
|
|
ListAlloc* ListAlloc_Init(ListAlloc* this);
|
|
|
|
|
void* ListAlloc_Alloc(ListAlloc* this, size_t size);
|
|
|
|
|
void ListAlloc_Free(ListAlloc* this, void* data);
|
|
|
|
|
void ListAlloc_FreeAll(ListAlloc* this);
|
|
|
|
|
|
2024-01-05 10:15:41 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#undef this
|
2023-09-16 08:34:16 +10:00
|
|
|
#endif
|
2024-01-05 10:15:41 -06:00
|
|
|
|
|
|
|
|
#endif
|