MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / assertion_failed_msg_helper

Function assertion_failed_msg_helper

src/util/assert.cpp:7–17  ·  view source on GitHub ↗

We hard-abort on assertion violations.

Source from the content-addressed store, hash-verified

5{
6// We hard-abort on assertion violations.
7[[noreturn]] void assertion_failed_msg_helper(
8 char const *expr, char const *msg, char const *function, char const *file, long line)
9{
10 const auto tid = std::this_thread::get_id();
11
12 std::cerr << "[assert][" << tid << "] " << file << ":" << line << "\nin: " << function << ": "
13 << expr << "\n"
14 << msg;
15
16 std::terminate();
17}
18} // namespace
19
20// Boost.Assert only declares the following two functions and let's us define them here.

Callers 2

assertion_failedFunction · 0.85
assertion_failed_msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected