[ccan] [PATCH 0/5] cppmagic: Preprocessor tricks

Rusty Russell rusty at rustcorp.com.au
Mon Feb 1 12:51:33 AEDT 2016


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!

Commit away!
Rusty.


More information about the ccan mailing list