From: Jeff King Date: Fri, 11 Aug 2023 15:13:23 GMT Subject: Re: [PATCH] describe: fix --no-exact-match Message-ID: <20230811151323.GF2303200@coredump.intra.peff.net> In-Reply-To: <09f499ad-28a5-0d8b-8af6-97475bdc614b@web.de> On Thu, Aug 10, 2023 at 09:10:33PM +0200, René Scharfe wrote: > +#define DEFINE_PARSE_OPT_CB(name) \ > +static inline int name ## __void(const struct option *opt, \ > + const char *arg, int unset) \ > +{ \ > + return name(opt, arg, unset, opt->value); \ > +} \ > +struct option BTW, I wondered what this extra "struct option" was doing. I guess it is there to soak up the semi-colon of: DEFINE_PARSE_OPT_CB(foo); with a noop declaration. Both clever and gross. :) -Peff