mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Report leaks to debugger in addition to stderr
This branch should also close #120.
This commit is contained in:
		| @@ -21,7 +21,7 @@ int main (int argc, char * argv[]) { | |||||||
|     flag |= _CRTDBG_LEAK_CHECK_DF; |     flag |= _CRTDBG_LEAK_CHECK_DF; | ||||||
|     flag |= _CRTDBG_ALLOC_MEM_DF; |     flag |= _CRTDBG_ALLOC_MEM_DF; | ||||||
|     _CrtSetDbgFlag(flag); |     _CrtSetDbgFlag(flag); | ||||||
|     _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); |     _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG); | ||||||
|     _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); |     _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); | ||||||
|     // Change this to leaking allocation's number to break there |     // Change this to leaking allocation's number to break there | ||||||
|     _CrtSetBreakAlloc(-1); |     _CrtSetBreakAlloc(-1); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský