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

Function OnAssertFailedDefault

libs/base/base.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace base
10{
11bool OnAssertFailedDefault(SrcPoint const & srcPoint, std::string const & msg)
12{
13 auto & logger = LogHelper::Instance();
14
15 std::cerr << '(' << logger.GetThreadID() << ") ASSERT FAILED" << '\n'
16 << srcPoint.FileName() << ':' << srcPoint.Line() << '\n'
17 << msg << std::endl
18 << std::flush;
19 return true;
20}
21
22AssertFailedFn OnAssertFailed = &OnAssertFailedDefault;
23

Callers

nothing calls this directly

Calls 3

GetThreadIDMethod · 0.80
FileNameMethod · 0.80
LineMethod · 0.45

Tested by

no test coverage detected