|
Pac-Man Evolution
|
Loading...
Searching...
No Matches
28#ifndef MEMORYMANAGERPME_H
29#define MEMORYMANAGERPME_H
32#if __has_include(<CRM64Pro/CRM64Pro.h>)
33 #include <CRM64Pro/CRM64Pro.h>
37using namespace CRM64Pro;
48 void*
operator new(size_t,
const std::nothrow_t&);
49 void operator delete(
void*,
const std::nothrow_t&);
50 void operator delete(
void*);
52 #define _PME_ALLOC(type,size) (type*)CRM64Pro::CMem::alloc(sizeof(type) * (size), 1)
53 #define _PME_FREE(p) CRM64Pro::CMem::free(p)
56 #define _PME_ALLOC(type, size) new(std::nothrow) type[size]
57 #define _PME_FREE(p) delete[]p