1
0
cuberite-2a/tests/ChunkData/creatable.cpp

30 lines
562 B
C++
Raw Normal View History

#include "Globals.h"
2014-05-21 14:58:48 -04:00
#include "ChunkData.h"
2014-04-27 15:25:03 -04:00
int main(int argc, char** argv)
{
LOGD("Test started");
class cMockAllocationPool
: public cAllocationPool<cChunkData::sChunkSection>
{
virtual cChunkData::sChunkSection * Allocate() override
{
return new cChunkData::sChunkSection();
}
virtual void Free(cChunkData::sChunkSection * a_Ptr) override
{
delete a_Ptr;
}
virtual bool DoIsEqual(const cAllocationPool<cChunkData::sChunkSection> &) const NOEXCEPT override
{
return false;
}
} Pool;
cChunkData buffer(Pool);
return 0;
2014-04-27 15:25:03 -04:00
}