hs-bindgen-1.0.0.0: test-artefacts/headers/golden/binding-specs/fun_arg/macro/function.h
/* Macros of functions */
// NOTE: all declarations are selected, unless otherwise specified.
// Not replaced by external binding specs
typedef int MyFunction (int);
void foo(MyFunction x);
// Not replaced by external binding specs
#define A MyFunction
#define B A
void fooA(A x);
void fooB(B x);
// Test transitive dependencies of macros replaced by external binding
// specifications
// _X, _Y and _Z are intentionally distinct macros from A and B. We want C, D,
// and E to refer to unselected macros.
// Not selected
typedef int _X(int);
#define _Y _X
#define _Z _Y
// Replaced by external binding specs
#define C _Z
#define D C
// Not replaced by external binding spec
#define E C
void fooC(C x);
void fooD(D x);
void fooE(E x);
// foo* and bar* style functions are equivalent, but we add them both for
// completeness.
void bar(int (*x) (int));
void barA(A * x);
void barB(B * x);
void barC(C * x);
void barD(D * x);
void barE(E * x);