A variadic function counting its number of arguments may be introduced as:
struct x1f4_function_type arity_d = {
"arity",
arity_s,
X1f4_E4_MODE,
NULL,
0,
X1f4_E4_SIDE_LIST,
5
};
See Symbolic Types.
See Function Flags.
See struct x1f4_function_type.
static int
arity_s(void *context, void *data, void **text)
{
X1f4_E4_C_MODE *c;
struct x1f4_function_type *function_data;
function_data = ((void **) input[-1])[X1f4_E4_RENDITION];
c = output;
*c = function_data->count;
return 0;
}
See C Types.
See Per Function Execution Context.