MCPcopy Create free account
hub / github.com/Illation/ETEngine / SetDebuggingOptions

Function SetDebuggingOptions

Projects/Demo/source/Runtime/main.cpp:59–72  ·  view source on GitHub ↗

--------------------------------- SetDebuggingOptions On debug builds this will tell us about memory leaks

Source from the content-addressed store, hash-verified

57// On debug builds this will tell us about memory leaks
58//
59void SetDebuggingOptions()
60{
61 //notify user if heap is corrupt
62 HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0);
63
64 // Enable run-time memory leak check for debug builds.
65#if defined(ET_DEBUG)
66 _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
67
68 typedef HRESULT(__stdcall *fPtr)(const IID&, void**);
69
70 //_CrtSetBreakAlloc(106750);
71#endif
72}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected