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

Append a printf-style format C-string expanded with the values of a variable argument list.

Parameters
[in]fmta printf-style format C-string
[in]...a variable argument list
Returns
*this
Exceptions
std::bad_alloc
csdbg::exception

Definition at line 428 of file string.cpp.

References __D_ASSERT, append(), format(), and unlikely.

429 {
430  __D_ASSERT(fmt != NULL);
431  if ( unlikely(fmt == NULL) )
432  return *this;
433 
434  string tmp;
435  va_list args;
436  va_start(args, fmt);
437  tmp.format(fmt, args);
438 
439  return append(tmp);
440 }
virtual string & append(const string &)
Append a string.
Definition: string.cpp:404
#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: