aboutsummaryrefslogtreecommitdiff
path: root/test/source/EASTLTestAllocator.h
blob: 775aff6558c9bd2a6b6e74410b16626062e61e0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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