MCPcopy Create free account
hub / github.com/DavidColson/Polybox / AssertHandler

Function AssertHandler

source/main.cpp:147–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145// ***********************************************************************
146
147void AssertHandler(Log::LogLevel level, String message) {
148 if (level <= Log::ECrit) {
149 switch (ShowAssertDialog(message)) {
150 case 0:
151 _set_abort_behavior(0, _WRITE_ABORT_MSG);
152 abort();
153 break;
154 case 1:
155 __debugbreak();
156 break;
157 default:
158 break;
159 }
160 }
161}
162
163// ***********************************************************************
164

Callers

nothing calls this directly

Calls 1

ShowAssertDialogFunction · 0.85

Tested by

no test coverage detected