MCPcopy Create free account
hub / github.com/catboost/catboost / AssertTrapImpl

Function AssertTrapImpl

library/cpp/yt/assert/assert.cpp:10–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8////////////////////////////////////////////////////////////////////////////////
9
10Y_WEAK void AssertTrapImpl(
11 TStringBuf trapType,
12 TStringBuf expr,
13 TStringBuf description,
14 TStringBuf file,
15 int line,
16 TStringBuf function)
17{
18 // Map to Arcadia assert, poorly...
19 ::NPrivate::Panic(
20 ::NPrivate::TStaticBuf(file.data(), file.length()),
21 line,
22 function.data(),
23 expr.data(),
24 "%s: %.*s",
25 trapType.data(),
26 static_cast<int>(std::min<ui64>(description.length(), std::numeric_limits<int>::max())),
27 description.data());
28}
29
30////////////////////////////////////////////////////////////////////////////////
31

Callers

nothing calls this directly

Calls 4

TStaticBufClass · 0.85
maxFunction · 0.50
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected