MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / close

Method close

extlibs/fmt/src/os.cc:162–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void buffered_file::close() {
163 if (!file_) return;
164 int result = FMT_SYSTEM(fclose(file_));
165 file_ = nullptr;
166 if (result != 0) FMT_THROW(system_error(errno, "cannot close file"));
167}
168
169// A macro used to prevent expansion of fileno on broken versions of MinGW.
170#define FMT_ARGS

Callers 1

pipeMethod · 0.45

Calls 1

system_errorFunction · 0.85

Tested by

no test coverage detected