On Thu, Apr 30, 2009 at 02:47:06PM -0700, Jordan Brown wrote: > Nicolas Williams wrote: > >There's one more option: let it use syslog(), but instead of interposing > >use a macro to force the use of the application's error handling > >function (with same prototype as syslog()). > > Remember that syslog is a varargs function. Unless you're willing to make > assumptions about how rpcgen uses it (which, granted, aren't all that > unreasonable; it always uses the same variation) or are willing to require > C99, you can't override it with a macro.
You don't have to define a macro that takes arguments... You're only renaming the symbol.