1 #ifndef BZ_MEMORY_STADIUM_H
2 #define BZ_MEMORY_STADIUM_H
4 #include <bz/types/common.h>
10 typedef struct BZMemoryArena BZMemoryArena
;
11 typedef BZMemoryArena
* BZMemoryArenaID
;
13 extern BZMemoryArenaID kBZSystemMemoryArena
;
15 extern BZMemoryArenaID
bzMemoryArenaCreate(BZMemoryArenaID hostArena
, size_t size
, const char *nameFmt
, ...);
17 extern void bzMemoryArenaReset(BZMemoryArenaID arena
);
18 extern void bzMemoryArenaResetTmp(BZMemoryArenaID arena
); // Reset temporary memory only
20 extern void bzMemoryArenaPushWatermark(BZMemoryArenaID arena
);
21 extern void bzMemoryArenaPopWatermark(BZMemoryArenaID arena
);