MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / LeakDetector

Method LeakDetector

Bcore/src/main/cpp/Dobby/tests/catch.hpp:7465–7474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7463namespace Catch {
7464
7465LeakDetector::LeakDetector() {
7466 int flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
7467 flag |= _CRTDBG_LEAK_CHECK_DF;
7468 flag |= _CRTDBG_ALLOC_MEM_DF;
7469 _CrtSetDbgFlag(flag);
7470 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
7471 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
7472 // Change this to leaking allocation's number to break there
7473 _CrtSetBreakAlloc(-1);
7474}
7475} // namespace Catch
7476
7477#else

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected