7std::string
vformat (
const char *fmt, va_list ap) {
12 std::vector<char> dynamicbuf;
13 char *buf = &stackbuf[0];
19 int needed = vsnprintf (buf, size, fmt, ap);
27 if (needed <= (
int)size && needed >= 0) {
29 return std::string (buf, (
size_t) needed);
35 size = (needed > 0) ? (needed+1) : (size*2);
36 dynamicbuf.resize (size);
47 std::string buf =
vformat (fmt, ap);
55 std::string buf =
vformat (fmt, ap);
63 std::string buf =
vformat (fmt, ap);
71 std::string buf =
vformat (fmt, ap);
std::string vformat(const char *fmt, va_list ap)
This file contains aliases for making access to the long state vector Q as used eg.
void TP_INFO(const char *fmt,...)
void TP_ERROR(const char *fmt,...)
void TP_LOG(const char *fmt,...)
void TP_WARN(const char *fmt,...)