mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 18:24:02 +00:00
33 lines
561 B
C++
33 lines
561 B
C++
![]() |
//========================================================================
|
||
|
//
|
||
|
// gmempp.cc
|
||
|
//
|
||
|
// Use gmalloc/gfree for C++ new/delete operators.
|
||
|
//
|
||
|
// Copyright 1996-2003 Glyph & Cog, LLC
|
||
|
//
|
||
|
//========================================================================
|
||
|
|
||
|
#include <config.h>
|
||
|
#include "gmem.h"
|
||
|
|
||
|
#ifdef DEBUG_MEM
|
||
|
|
||
|
void *operator new(size_t size) {
|
||
|
return gmalloc((int)size);
|
||
|
}
|
||
|
|
||
|
void *operator new[](size_t size) {
|
||
|
return gmalloc((int)size);
|
||
|
}
|
||
|
|
||
|
void operator delete(void *p) {
|
||
|
gfree(p);
|
||
|
}
|
||
|
|
||
|
void operator delete[](void *p) {
|
||
|
gfree(p);
|
||
|
}
|
||
|
|
||
|
#endif
|