aboutsummaryrefslogtreecommitdiff
path: root/EASTL/test/source/EASTLTestAllocator.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-04-08 16:43:58 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-04-08 16:43:58 +0200
commita3c405074db4c53e9da042a8772135fb9bf6caa2 (patch)
tree3417be8827d1eed95a415e7ee68dbc4263085405 /EASTL/test/source/EASTLTestAllocator.h
parentac1b72946c226eb3cd4f3f0b8f13a8330142ebe8 (diff)
parente59cf7b09e7388d369e8d2bf73501cde79c28708 (diff)
Merge commit 'e59cf7b09e7388d369e8d2bf73501cde79c28708' as 'EASTL'
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