"Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
> but I would
> #define ENVELOPE_FCE(name,dest) \
> Datum name (PG_FUNCTION_ARGS); \
> PG_FUNCTION_INFO_V1(name); \
> Datum \
> name (PG_FUNCTION_ARGS) \
> { \
> return (dest)(fceinfo); \
> }
That seems perfectly legitimate to me --- I'm pretty sure there are
several instances of that in the core code already.
I'd be more inclined to call the macro WRAPPER_FUNCTION, perhaps.
regards, tom lane