libcsdbg  1.28
C++ exception (and generic) stack trace debug library
bool csdbg::sttybuf::is_tty ( ) const
inlinevirtual

Check if the device node is a terminal.

Returns
true if the node is a terminal, false otherwise

Definition at line 217 of file sttybuf.cpp.

References likely, and csdbg::streambuf::m_handle.

218 {
219  if ( likely(m_handle >= 0) )
220  return isatty(m_handle);
221 
222  return false;
223 }
i32 m_handle
Stream handle (descriptor)
Definition: streambuf.hpp:43
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344