MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / DebugAssertImpl

Function DebugAssertImpl

PresentData/Debug.cpp:375–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375void DebugAssertImpl(wchar_t const* msg, wchar_t const* file, int line)
376{
377 if (IsVerboseTraceEnabled()) {
378 wprintf(L"ASSERTION FAILED: %s(%d): %s\n", file, line, msg);
379
380 if (IsDebuggerPresent()) {
381 DebugBreak();
382 }
383 } else {
384 #ifndef NDEBUG
385 _wassert(msg, file, line);
386 #endif
387 }
388}
389
390void VerboseTraceEventImpl(PMTraceConsumer* pmConsumer, EVENT_RECORD* eventRecord, EventMetadata* metadata)
391{

Callers

nothing calls this directly

Calls 1

IsVerboseTraceEnabledFunction · 0.85

Tested by

no test coverage detected