mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
merged new xmlrpc-c revision 1472 from https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user