libcsdbg  1.28
C++ exception (and generic) stack trace debug library
bool csdbg::filter::apply ( const i8 target) const

Apply the filter to a function signature or a module absolute path.

[in]targetthe filtered text
true if the target matches the filter, false otherwise

Definition at line 147 of file filter.cpp.

References __D_ASSERT, m_expr, and unlikely.

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

148 {
149  __D_ASSERT(target != NULL);
150  if ( unlikely(target == NULL) )
151  return false;
153  return !regexec(&m_expr, target, 0, NULL, 0);
154 }
regex_t m_expr
Filter expression.
Definition: filter.hpp:29
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
Definition: config.hpp:349
#define __D_ASSERT(x)
Assertion macro.
Definition: config.hpp:268

+ Here is the caller graph for this function: