aboutsummaryrefslogtreecommitdiff
path: root/src/win/heap_debug.cpp
blob: 33ebae7c755a0e22edaa4a9f40d6d723b2b8cade (plain)
1
2
3
4
5
6
7
8
9
10
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);
}
}