home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 44
/
Amiga_Dream_44.iso
/
RiscPc
/
Utils
/
pdftops_0.5.arc
/
goo
/
c++
/
gmempp
next >
Wrap
Text File
|
1996-06-08
|
440b
|
24 lines
//========================================================================
//
// gmempp.cc
//
// Use gmalloc/gfree for C++ new/delete operators.
//
// Copyright 1996 Derek B. Noonburg
//
//========================================================================
#include "gmem.h"
#ifdef DEBUG_MEM
void *operator new(long size) {
return gmalloc((int)size);
}
#endif
#ifdef DEBUG_MEM
void operator delete(void *p) {
gfree(p);
}
#endif