| 78 | } |
| 79 | |
| 80 | fmt::BufferedFile::BufferedFile(fmt::StringRef filename, fmt::StringRef mode) { |
| 81 | FMT_RETRY_VAL(file_, FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())), 0); |
| 82 | if (!file_) |
| 83 | throw SystemError(errno, "cannot open file {}", filename); |
| 84 | } |
| 85 | |
| 86 | void fmt::BufferedFile::close() { |
| 87 | if (!file_) |
nothing calls this directly
no test coverage detected