48 namespace multisense {
52 #ifndef NEED_VASPRINTF 53 #define NEED_VASPRINTF 0 57 int vasprintf (
char** strp,
const char* fmt, va_list ap)
59 int len = _vscprintf (fmt, ap);
66 *strp = (
char*)malloc ((
size_t)len + 1);
72 len = _vsnprintf (*strp, (
size_t)len + 1, fmt, ap);
94 va_start(ap, failureReason);
95 returnValue = vasprintf(&stringP, failureReason, ap);
98 if ((NULL != stringP) && (returnValue != -1)) {
99 reason = std::string(stringP);
122 return this->
reason.c_str();
Exception(const char *failureReason,...)
virtual const char * what() const