diff options
author | crupest <crupest@outlook.com> | 2020-05-24 01:40:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-05-24 01:40:02 +0800 |
commit | d86a71f79afe0e4dac768f61d6bff690567aca5b (patch) | |
tree | 4957e9a64c77680deb07201fbd879bf036616dae /src/win/HeapDebug.cpp | |
parent | f3a8fd608a9776ef0a5f547da918a32cf6074060 (diff) | |
download | cru-d86a71f79afe0e4dac768f61d6bff690567aca5b.tar.gz cru-d86a71f79afe0e4dac768f61d6bff690567aca5b.tar.bz2 cru-d86a71f79afe0e4dac768f61d6bff690567aca5b.zip |
...
Diffstat (limited to 'src/win/HeapDebug.cpp')
-rw-r--r-- | src/win/HeapDebug.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/win/HeapDebug.cpp b/src/win/HeapDebug.cpp new file mode 100644 index 00000000..6ec1ffcc --- /dev/null +++ b/src/win/HeapDebug.cpp @@ -0,0 +1,11 @@ +#include "cru/win/WinPreConfig.hpp" + +#include "cru/platform/HeapDebug.hpp" + +#include <crtdbg.h> + +namespace cru::platform { +void SetupHeapDebug() { + _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); +} +} |