VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vlDebugCrt.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifdef _WIN32
7 
8 // Adding this for testing. Later this should be based on an option in local.cmake
9 //#define MAK_ENABLE_CRT_DEBUG 1
10 
11 #ifdef MAK_ENABLE_CRT_DEBUG
12 
13 #define _CRTDBG_MAP_ALLOC
14 #include <stdlib.h>
15 #include <crtdbg.h>
16 
17 #ifdef _DEBUG
18 #define DEBUG_CLIENTBLOCK new( _CLIENT_BLOCK, __FILE__, __LINE__)
19 #else
20 #define DEBUG_CLIENTBLOCK
21 #endif
22 
23 #ifdef _DEBUG
24 #define new DEBUG_CLIENTBLOCK
25 #endif
26 
27 #endif
28 
29 #endif

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)