36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
// $Id: debugleak.h 84 2006-12-13 06:14:36Z felfert $
|
|
//
|
|
// Copyright (C) 2006 The OpenNX Team
|
|
// Author: Fritz Elfert
|
|
//
|
|
// This program is free software; you can redistribute it and/or modify
|
|
// it under the terms of the GNU Library General Public License as
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Library General Public
|
|
// License along with this program; if not, write to the
|
|
// Free Software Foundation, Inc.,
|
|
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
//
|
|
|
|
#ifdef DEBUG
|
|
#ifndef _DEBUGLEAK_H_
|
|
#ifdef __WXMSW__
|
|
#define _DEBUGLEAK_H_
|
|
#ifdef _DEBUG
|
|
#include <crtdbg.h>
|
|
#define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
|
|
#else
|
|
#define DEBUG_NEW new
|
|
#endif
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
#endif
|
|
#endif
|