| 7463 | namespace Catch { |
| 7464 | |
| 7465 | LeakDetector::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 |
nothing calls this directly
no outgoing calls
no test coverage detected