Generator/Exponential: Difference between revisions

Content added Content deleted
(→‎{{header|C}}: more normal mothod)
Line 422: Line 422:
#define SEQ_BASE seq_func f; int output
#define SEQ_BASE seq_func f; int output


/* sort of polymorphing data structure */
typedef struct { SEQ_BASE; } gen_t;
typedef struct { SEQ_BASE; } gen_t;