Reproduction
This is likely a known issue, but I didn't find mentions in the issues yet. Basically, from the following code:
#if FOO
public func first() {}
#else
public func second() {}
#endif
public func third() {}
only the third function is exported by jextract as of 5764bc2a1b706056121109dc0ab14fd3d771cbc5