MCPcopy Create free account
hub / github.com/comaps/comaps / SetAssertFunction

Function SetAssertFunction

libs/base/base.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22AssertFailedFn OnAssertFailed = &OnAssertFailedDefault;
23
24AssertFailedFn SetAssertFunction(AssertFailedFn fn)
25{
26 std::swap(OnAssertFailed, fn);
27 return fn;
28}
29} // namespace base

Callers 2

InitAssertLogFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 1

swapFunction · 0.70

Tested by 1

UNIT_TESTFunction · 0.68