mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-03 11:50:29 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
29 lines
447 B
C++
29 lines
447 B
C++
#include <string>
|
|
|
|
#include "xmlrpc-c/string_int.h"
|
|
#include "xmlrpc-c/girerr.hpp"
|
|
|
|
using namespace std;
|
|
|
|
namespace girerr {
|
|
|
|
void
|
|
throwf(const char * const format, ...) {
|
|
|
|
va_list varargs;
|
|
va_start(varargs, format);
|
|
|
|
const char * value;
|
|
xmlrpc_vasprintf(&value, format, varargs);
|
|
|
|
string const valueString(value);
|
|
|
|
xmlrpc_strfree(value);
|
|
|
|
throw(girerr::error(valueString));
|
|
|
|
va_end(varargs);
|
|
}
|
|
|
|
} // namespace
|