source: trunk/poppler/mypoppler/goo/gmempp.cc @ 461

Last change on this file since 461 was 2, checked in by Eugene Romanenko, 16 years ago

First import

File size: 561 bytes
Line 
1//========================================================================
2//
3// gmempp.cc
4//
5// Use gmalloc/gfree for C++ new/delete operators.
6//
7// Copyright 1996-2003 Glyph & Cog, LLC
8//
9//========================================================================
10
11#include <config.h>
12#include "gmem.h"
13
14#ifdef DEBUG_MEM
15
16void *operator new(size_t size) {
17  return gmalloc((int)size);
18}
19
20void *operator new[](size_t size) {
21  return gmalloc((int)size);
22}
23
24void operator delete(void *p) {
25  gfree(p);
26}
27
28void operator delete[](void *p) {
29  gfree(p);
30}
31
32#endif
Note: See TracBrowser for help on using the repository browser.