| 8 | //////////////////////////////////////////////////////////////////////////////// |
| 9 | |
| 10 | Y_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 |
nothing calls this directly
no test coverage detected