MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / LeakDetector

Method LeakDetector

tests/catch.hpp:8838–8847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8836namespace Catch {
8837
8838 LeakDetector::LeakDetector() {
8839 int flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
8840 flag |= _CRTDBG_LEAK_CHECK_DF;
8841 flag |= _CRTDBG_ALLOC_MEM_DF;
8842 _CrtSetDbgFlag(flag);
8843 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
8844 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
8845 // Change this to leaking allocation's number to break there
8846 _CrtSetBreakAlloc(-1);
8847 }
8848}
8849
8850#else

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected