summaryrefslogblamecommitdiffstats
path: root/tests/ChunkData/creatable.cpp
blob: fc786f688eea7546f40e98354b95dd692839d100 (plain) (tree)
1
2
3
4
5
6
 
                    
                      
 

                               












                                                                    
                                
                 
 

#include "Globals.h"
#include "ChunkData.h"

int main(int argc, char** argv)
{
	class cMockAllocationPool
		: public cAllocationPool<cChunkData::sChunkSection>
 	{
		virtual cChunkData::sChunkSection * Allocate()
		{
			return new cChunkData::sChunkSection();
		}
		
		virtual void Free(cChunkData::sChunkSection * a_Ptr)
		{
			delete a_Ptr;
		}
	} Pool;
	cChunkData buffer(Pool);
	return 0;
}