mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
efa1406d8f
Should hopefully fix the buildbot.
16 lines
343 B
C
16 lines
343 B
C
#pragma once
|
|
|
|
// Utility file for using the MS CRT's memory tracking.
|
|
// crtdbg.h overloads malloc with malloc_dbg etc, but does not catch new. So here we go.
|
|
|
|
#include <crtdbg.h>
|
|
|
|
#if defined(_DEBUG)
|
|
#define USE_CRT_DBG
|
|
#ifndef DBG_NEW
|
|
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
|
|
#define new DBG_NEW
|
|
#endif
|
|
|
|
#endif // _DEBUG
|