1 2 #ifndef _mempool_h_ 3 #define _mempool_h_ 1 4 5 6 #ifdef __cplusplus 7 8 extern "C" { 9 10 #endif 11 12 #define NEW_DEALLOCATION_ORDER 1 13 14 #define USE_LEVEL_MEMORY_POOL 1 15 16 #if USE_LEVEL_MEMORY_POOL 17 void* PoolAllocateMem(unsigned int amount); 18 void ClearMemoryPool(); 19 #else 20 #define PoolAllocateMem AllocateMem 21 #define ClearMemoryPool() ((void)0) 22 #endif 23 24 25 #ifdef __cplusplus 26 27 }; 28 29 #endif 30 31 32 #endif 33