blob: 98bba2e4eae454d4c05043ecada7cc35eee4f181 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef LEO_ALLOC_H
#define LEO_ALLOC_H
#include <stddef.h>
typedef struct {
void *(*alloc)(size_t size);
void *(*realloc)(void *ptr, size_t new_size);
void (*free)(void *ptr);
void *ctx;
} LEO_Allocator;
#endif
|