libcsdbg  1.28
C++ exception (and generic) stack trace debug library
csdbg::exception::exception ( const i8 fmt,
  ... 
)
explicit

Object constructor.

Parameters
[in]fmta printf-style format string (the error description)
[in]...a variable argument list

Definition at line 64 of file exception.cpp.

References __D_ASSERT, m_msg, unlikely, and csdbg::util::va_format().

Referenced by clone().

64  :
65 m_msg(NULL)
66 {
67  __D_ASSERT(fmt != NULL);
68  if ( unlikely(fmt == NULL) )
69  return;
70 
71  try {
72  va_list args;
73  va_start(args, fmt);
74  m_msg = util::va_format(fmt, args);
75  }
76 
77  catch (...) {
78  __D_ASSERT(m_msg != NULL);
79  }
80 }
static i8 * va_format(const i8 *, va_list)
Format a buffer with a printf-style string expanded with the values of a variable argument list...
Definition: util.cpp:519
i8 * m_msg
Error description message.
Definition: exception.hpp:32
#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 call graph for this function:

+ Here is the caller graph for this function: