| 8836 | namespace 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 |
nothing calls this directly
no outgoing calls
no test coverage detected