From cafcbde7529f7c1e4219344df9a404ecdb411aa5 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Thu, 11 Jul 2019 00:43:27 +0800 Subject: ... --- src/win/heap_debug.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/win/heap_debug.cpp (limited to 'src/win/heap_debug.cpp') diff --git a/src/win/heap_debug.cpp b/src/win/heap_debug.cpp new file mode 100644 index 00000000..33ebae7c --- /dev/null +++ b/src/win/heap_debug.cpp @@ -0,0 +1,11 @@ +#include "cru/win/win_pre_config.hpp" + +#include "cru/platform/heap_debug.hpp" + +#include + +namespace cru::platform { +void SetupHeapDebug() { + _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); +} +} -- cgit v1.2.3