Guiliani
Version 2.6 revision 7293 (documentation build 12)
WindowsLeakWatcher.h
1
/*
2
* Copyright (C) TES Electronic Solutions GmbH,
3
* All Rights Reserved.
4
* Contact: info@guiliani.de
5
*
6
* This file is part of the Guiliani HMI framework
7
* for the development of graphical user interfaces on embedded systems.
8
*/
9
15
/**************************************************************************************
16
*THIS FILE MUST BE INCLUDED AFTER ALL THE INCLUDE FILES IF YOU USE STL.
17
*THUS BE SURE TO USE THIS HEADER, YOU CALL INCLUDE THIS HEADER AFTER ALL
18
*THE INCLUDE FILES.
19
**************************************************************************************/
20
#ifndef _WINDOWS_LEAK_WATCHER__H
21
#define _WINDOWS_LEAK_WATCHER__H
22
23
#include "GUIConfigDebug.h"
24
25
#if defined(eC_TARGET_ENV_WIN32)
26
#ifdef GUILIANI_WINDOWS_LEAK_WATCHER
27
#define _CRTDBG_MAP_ALLOC
28
#include <stdlib.h>
29
#include <crtdbg.h>
30
/*
31
Because the new operator is declared as an inline function. The following
32
macro make the inline workaround so that the __FILE__ shows the correct the file name.
33
*/
34
#ifdef new
35
#undef new
36
#endif
37
38
#define NEW_INLINE_WORKAROUND new (_NORMAL_BLOCK,__FILE__, __LINE__)
39
#define new NEW_INLINE_WORKAROUND
40
41
#endif
42
#endif
43
#endif
Include
GUIConfig
WindowsLeakWatcher.h
Generated by
1.9.4