| 55 | #endif |
| 56 | |
| 57 | const 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_ |
| 69 | static char* Strip(char* s) { |
nothing calls this directly
no test coverage detected