blob: 095357cdfa8cbb11776d047f81ef19fd0d265eba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  | 
#include "assert.h"
#include <util/system/yassert.h>
#include <util/system/compiler.h>
namespace NYT::NDetail {
////////////////////////////////////////////////////////////////////////////////
Y_WEAK void AssertTrapImpl(
    TStringBuf trapType,
    TStringBuf expr,
    TStringBuf file,
    int line,
    TStringBuf function)
{
    // Map to Arcadia assert, poorly...
    ::NPrivate::Panic(
        ::NPrivate::TStaticBuf(file.data(), file.length()),
        line,
        function.data(),
        expr.data(),
        "%s",
        trapType.data());
}
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NDetail
  |