aboutsummaryrefslogtreecommitdiff
path: root/EASTL/test/source/EASTLTestAllocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'EASTL/test/source/EASTLTestAllocator.h')
-rw-r--r--EASTL/test/source/EASTLTestAllocator.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/EASTL/test/source/EASTLTestAllocator.h b/EASTL/test/source/EASTLTestAllocator.h
new file mode 100644
index 0000000..775aff6
--- /dev/null
+++ b/EASTL/test/source/EASTLTestAllocator.h
@@ -0,0 +1,26 @@
+/////////////////////////////////////////////////////////////////////////////
+// Copyright (c) Electronic Arts Inc. All rights reserved.
+/////////////////////////////////////////////////////////////////////////////
+
+
+#ifndef EASTLTEST_ALLOCATOR_H
+#define EASTLTEST_ALLOCATOR_H
+
+#include <EABase/eabase.h>
+#include <new>
+
+ void* operator new(size_t size);
+ void* operator new[](size_t size);
+ void* operator new[](size_t size, const char* /*name*/, int /*flags*/, unsigned /*debugFlags*/, const char* /*file*/, int /*line*/);
+ void* operator new[](size_t size, size_t alignment, size_t /*alignmentOffset*/, const char* /*name*/, int /*flags*/, unsigned /*debugFlags*/, const char* /*file*/, int /*line*/);
+ void* operator new(size_t size, size_t alignment);
+ void* operator new(size_t size, size_t alignment, const std::nothrow_t&) EA_THROW_SPEC_NEW_NONE();
+ void* operator new[](size_t size, size_t alignment);
+ void* operator new[](size_t size, size_t alignment, const std::nothrow_t&)EA_THROW_SPEC_NEW_NONE();
+ void operator delete(void* p) EA_THROW_SPEC_DELETE_NONE();
+ void operator delete[](void* p) EA_THROW_SPEC_DELETE_NONE();
+ void EASTLTest_SetGeneralAllocator();
+ bool EASTLTest_ValidateHeap();
+
+
+#endif // Header include guard