Added helper stock to check if a command exists. (
bug 5510, r=asherkin)
1 #ifndef _INCLUDE_KNIGHT_KE_LUMP_ALLOCATOR_H_
2 #define _INCLUDE_KNIGHT_KE_LUMP_ALLOCATOR_H_
5 #include <KnightAllocator.h>
10 * @brief Creates a new lump allocator.
12 * The lump allocator is intended for cases where there are many allocations
13 * and none need to be freed. There is memory wastage, and the lump allocator
14 * is typically thrown away after use.
16 * @return New lump allocator.
18 extern ke_allocator_t * KE_CreateLumpAllocator();
21 * @brief Destroys a lump allocator, freeing all of its resources.
23 * @param lump Lump allocator.
25 extern void KE_DestroyLumpAllocator(ke_allocator_t *alloc);
28 * @brief Clears a lump allocator, so its memory can be re-used from
31 * @param lump Lump allocator.
33 extern void KE_ResetLumpAllocator(ke_allocator_t *alloc);
36 #endif //_INCLUDE_KNIGHT_KE_LUMP_ALLOCATOR_H_