libcsdbg  1.28
C++ exception (and generic) stack trace debug library
u32 csdbg::process::symbol_count ( ) const
virtual

Get the number of symbols.

Returns
the sum of the loaded symbol table sizes

Definition at line 201 of file process.cpp.

References likely, and m_modules.

202 {
203  u32 cnt = 0;
204  for (i32 i = m_modules->size() - 1; likely(i >= 0); i--)
205  cnt += m_modules->at(i)->size();
206 
207  return cnt;
208 }
chain< symtab > * m_modules
Symbol table list.
Definition: process.hpp:39
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
Definition: config.hpp:344
unsigned int u32
32-bit unsigned integer
Definition: config.hpp:102
int i32
32-bit signed integer
Definition: config.hpp:82