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

Function vwarn

util/system/err.cpp:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void vwarn(const char* fmt, va_list args) {
25 int curErrNo = errno;
26 auto curErrText = LastSystemErrorText();
27
28 Y_DEFER {
29 errno = curErrNo;
30 };
31
32 Cerr << GetProgramName() << ": ";
33
34 if (fmt) {
35 Printf(Cerr, fmt, args);
36 Cerr << ": ";
37 }
38
39 Cerr << curErrText << '\n';
40}
41
42void warn(const char* fmt, ...) {
43 va_list args;

Callers 2

warnFunction · 0.85
verrFunction · 0.85

Calls 2

LastSystemErrorTextFunction · 0.70
PrintfFunction · 0.50

Tested by

no test coverage detected