diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-11 00:43:27 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-11 00:43:27 +0800 |
commit | cafcbde7529f7c1e4219344df9a404ecdb411aa5 (patch) | |
tree | a4b515131bb026d12db92eaa1d3f9f32a7a65505 /src/win/heap_debug.cpp | |
parent | d163bafa461779a3795818aa8c8b5238880ede24 (diff) | |
download | cru-cafcbde7529f7c1e4219344df9a404ecdb411aa5.tar.gz cru-cafcbde7529f7c1e4219344df9a404ecdb411aa5.tar.bz2 cru-cafcbde7529f7c1e4219344df9a404ecdb411aa5.zip |
...
Diffstat (limited to 'src/win/heap_debug.cpp')
-rw-r--r-- | src/win/heap_debug.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 <crtdbg.h> + +namespace cru::platform { +void SetupHeapDebug() { + _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); +} +} |