summaryrefslogtreecommitdiff
path: root/minilib/arena.h
blob: d7819817bd0f495216f4476d48504428c8f6324c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

/* TODO: simplest possible arena implementation, a fixed memory size
 * and allocated memory is returned in sequence from the pool.
 * deallocation does nothing but invalidating the pointer
 */

enum {
	ARENA_SIZE = 65535
};

void *allocate( int size );
void deallocate( void **p );