libcsdbg  1.28
C++ exception (and generic) stack trace debug library
filebuf & csdbg::filebuf::flush ( )
virtual

Flush the buffered data to the file.

Returns
*this
Exceptions
csdbg::exception

Implements csdbg::streambuf.

Definition at line 216 of file filebuf.cpp.

References csdbg::streambuf::flush(), and m_path.

217 {
218  try {
220  return *this;
221  }
222 
223  catch (i32 err) {
224  throw exception(
225  "failed to write data to file '%s' (errno %d - %s)",
226  m_path,
227  err,
228  strerror(err)
229  );
230  }
231 }
virtual streambuf & flush()=0
To be implemented.
Definition: streambuf.cpp:156
int i32
32-bit signed integer
Definition: config.hpp:82
i8 * m_path
Output file path.
Definition: filebuf.hpp:37

+ Here is the call graph for this function: