#define REPLY_FAULT ( string,
error   ) 


(* fault_error ) = string; \
(* fault_code ) = code; \
return error; } while(0);
Perform an error reply inside a XML-RPC server stub implementation.

The macro fills the fault code and the fault string and then perform a function return using the error value provided. This error value will be ignored but it is necessary to allow the function to compile knowing that it must return something.

This macro must be used only while replying an error, as a invocation error of parameter failure. Its usual function could be the following example:

 // ... server side XML-RPC service ...
 if (/some errror found) {
     // just call to the macro (without doing a return)
     REPLY_FAULT ("Unable to complete XML-RPC service", -1, NULL);

This macro must not be confused with CREATE_FAULT_REPLY. The later is used to create a fault reply represented by a XmlRpcMethodResponse and it is usually used while building raw XML-RPC servers (without using the xml-rpc-gen tool).

string The fault string to be reported.
code The fault code to be reported.
error The error code to be returned by this function.