[ccan] [PATCH 0/5] cppmagic: Preprocessor tricks
David Gibson
david at gibson.dropbear.id.au
Mon Feb 1 14:59:49 AEDT 2016
On Mon, Feb 01, 2016 at 12:21:33PM +1030, Paul 'Rusty' Russell wrote:
> David Gibson <david at gibson.dropbear.id.au> writes:
> > On Wed, Jan 27, 2016 at 10:39:56PM +1100, David Gibson wrote:
> >> ccan already has cpp macros used in some interesting ways. This
> >> module is far more interesting.. or possibly horrifying.
> >>
> >> It includes some very fancy preprocessor techniques described in the
> >> article at:
> >> http://jhnet.co.uk/articles/cpp_magic
> >>
> >> This includes preprocessing time evaluated conditionals, (sort of)
> >> recursion and iteration across the parameters of varargs macros.
> >
> > No comments so far. Unless there's an objection in the next couple of
> > days, I'll commit this myself.
>
> We're still reeling, I think!
Heh heh heh.
> Commit away!
Done.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20160201/d2c2de54/attachment.sig>
More information about the ccan
mailing list