ALBA
albaMemDbg.h
Go to the documentation of this file.
1
2// This file enables memory leaking detection
3// Include it in your .CPP or .C or .CXX files.
4// Note: If you include this file before including headers that
5// redefine new operators, you will not be able to compile the project
6
7#ifndef __MemDbg_h__
8#define __MemDbg_h__
9
10
11#define _CRTDBG_MAP_ALLOC
12#include <stdlib.h>
13#include <crtdbg.h>
14
15#ifdef _DEBUG
16#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
17#define new DEBUG_NEW
18#endif
19
20#endif