You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
561 B
33 lines
561 B
//========================================================================
|
|
//
|
|
// gmempp.cpp
|
|
//
|
|
// Use gmalloc/gfree for C++ new/delete operators.
|
|
//
|
|
// Copyright 1996-2003 Glyph & Cog, LLC
|
|
//
|
|
//========================================================================
|
|
|
|
#include <aconf.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
|