libcsdbg  1.28
C++ exception (and generic) stack trace debug library
tracer * csdbg::tracer::interface ( )
static

Get the interface object.

Returns
tracer::m_iface if the interface object is enabled, NULL otherwise

Definition at line 629 of file tracer.cpp.

References m_iface, m_proc, csdbg::process::module_count(), and unlikely.

Referenced by csdbg::__cyg_profile_func_enter(), csdbg::__cyg_profile_func_exit(), and csdbg::util::header().

630 {
631  if ( unlikely(m_iface == NULL || m_iface->m_proc == NULL) )
632  return NULL;
633 
634  else if ( unlikely(m_iface->m_proc->module_count() == 0) )
635  return NULL;
636 
637  return m_iface;
638 }
process * m_proc
Process handle.
Definition: tracer.hpp:45
virtual u32 module_count() const
Get the number of modules.
Definition: process.cpp:216
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
Definition: config.hpp:349
static tracer * m_iface
Interface object.
Definition: tracer.hpp:40

+ Here is the call graph for this function:

+ Here is the caller graph for this function: