#pragma once12#include <winapifamily.h>34// Utility file for using the MS CRT's memory tracking.5// crtdbg.h overloads malloc with malloc_dbg etc, but does not catch new. So here we go.67// To add a full check of memory overruns, throw in a _CrtCheckMemory(). Useful to narrow things down.89#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)1011#include <crtdbg.h>1213#if defined(_DEBUG)14#define USE_CRT_DBG15#ifndef DBG_NEW16#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )17#define new DBG_NEW18#endif1920#endif // _DEBUG2122#endif232425