wxMaxima
Loading...
Searching...
No Matches
wxmemdbg.h
Go to the documentation of this file.
1
2// Name: wxmemdbg.h
3// Purpose: Debugging of wxWidgets memory allocations
4// Author: Ulrich Telle
5// Modified by:
6// Created: 2009-01-28
7//
8// Copyright: (c) Ulrich Telle
9// Licence: wxWindows licence
11
13
14#ifndef _WX_MEMDBG_H_
15#define _WX_MEMDBG_H_
16
17#if defined(__WXMSW__) && defined(__VISUALC__)
18
19#ifdef _DEBUG
20#include <crtdbg.h>
21#define DEBUG_NEW new(_NORMAL_BLOCK ,__FILE__, __LINE__)
22#else
23#define DEBUG_NEW new
24#endif
25
26#ifdef _DEBUG
27#define new DEBUG_NEW
28#endif
29
30#endif
31
32#endif // _WX_MEMDBG_H_