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

Function LastSystemErrorText

util/system/error.cpp:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55#endif
56
57const char* LastSystemErrorText(int code) {
58#if defined(_win_)
59 TErrString& text(*Singleton<TErrString>());
60 LastSystemErrorText(text.data, sizeof(text.data), code);
61
62 return text.data;
63#else
64 return strerror(code);
65#endif
66}
67
68#ifdef _win_
69static char* Strip(char* s) {

Callers

nothing calls this directly

Calls 3

FormatMessageClass · 0.85
strfcpyFunction · 0.85
StripFunction · 0.70

Tested by

no test coverage detected