libcsdbg  1.28
C++ exception (and generic) stack trace debug library
plugin & csdbg::plugin::begin ( void *  this_fn,
void *  call_site 
) const

Begin instrumenting a function.

[in]this_fnthe address of the called function
[in]call_sitethe address where the function was called

Definition at line 297 of file plugin.cpp.

References __D_ASSERT, likely, and m_begin.

Referenced by csdbg::__cyg_profile_func_enter().

298 {
299  __D_ASSERT(m_begin != NULL);
300  if ( likely(m_begin != NULL) )
301  m_begin(this_fn, call_site);
303  return const_cast<plugin&> (*this);
304 }
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344
modsym_t m_begin
Instrumentation starting callback.
Definition: plugin.hpp:48
plugin(const i8 *, const i8 *=NULL)
Object constructor.
Definition: plugin.cpp:44
#define __D_ASSERT(x)
Assertion macro.
Definition: config.hpp:268

+ Here is the caller graph for this function: