Pac-Man Evolution
Loading...
Searching...
No Matches
source
MemoryManager.cpp
1
/*----------------------------------------------------------------------
2
Pac-Man Evolution - Roberto Prieto
3
Copyright (C) 2018-2024 MegaStorm Systems
4
contact@megastormsystems.com - http://www.megastormsystems.com
5
6
This software is provided 'as-is', without any express or implied
7
warranty. In no event will the authors be held liable for any damages
8
arising from the use of this software.
9
10
Permission is granted to anyone to use this software for any purpose,
11
including commercial applications, and to alter it and redistribute it
12
freely, subject to the following restrictions:
13
14
1. The origin of this software must not be misrepresented; you must not
15
claim that you wrote the original software. If you use this software
16
in a product, an acknowledgment in the product documentation would be
17
appreciated but is not required.
18
2. Altered source versions must be plainly marked as such, and must not be
19
misrepresented as being the original software.
20
3. This notice may not be removed or altered from any source distribution.
21
22
------------------------------------------------------------------------
23
24
Memory Manager
25
26
------------------------------------------------------------------------ */
27
28
// Includes
29
#include "MemoryManager.h"
30
31
// CMemPME class implementation
32
#ifdef USE_CMEM
33
void
* CMemPME::operator
new
(
size_t
iSize,
const
std::nothrow_t& n)
34
{
35
void
* pMem = CMem::alloc(iSize, 1);
36
return
pMem;
37
}
38
void
CMemPME::operator
delete
(
void
* pMem,
const
std::nothrow_t& n)
39
{
40
CMem::free(pMem);
41
}
42
void
CMemPME::operator
delete
(
void
* pMem)
43
{
44
CMem::free(pMem);
45
}
46
#endif
Generated by
1.9.6