mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-30 13:04:15 +01:00
27 lines
537 B
C++
27 lines
537 B
C++
|
#include "common.h"
|
||
|
#include "Pools.h"
|
||
|
#include "Lists.h"
|
||
|
|
||
|
void*
|
||
|
CPtrNode::operator new(size_t){
|
||
|
CPtrNode *node = CPools::GetPtrNodePool()->New();
|
||
|
assert(node);
|
||
|
return node;
|
||
|
}
|
||
|
|
||
|
void
|
||
|
CPtrNode::operator delete(void *p, size_t){
|
||
|
CPools::GetPtrNodePool()->Delete((CPtrNode*)p);
|
||
|
}
|
||
|
|
||
|
void*
|
||
|
CEntryInfoNode::operator new(size_t){
|
||
|
CEntryInfoNode *node = CPools::GetEntryInfoNodePool()->New();
|
||
|
assert(node);
|
||
|
return node;
|
||
|
}
|
||
|
void
|
||
|
CEntryInfoNode::operator delete(void *p, size_t){
|
||
|
CPools::GetEntryInfoNodePool()->Delete((CEntryInfoNode*)p);
|
||
|
}
|