From: David Gibson <david@gibson.dropbear.id.au>
To: ccan@lists.ozlabs.org, rusty@rustcorp.com.au
Subject: Re: [PATCH 0/5] cppmagic: Preprocessor tricks
Date: Sat, 30 Jan 2016 23:51:09 +1100 [thread overview]
Message-ID: <20160130125109.GS23043@voom.redhat.com> (raw)
In-Reply-To: <1453894801-22652-1-git-send-email-david@gibson.dropbear.id.au>
[-- Attachment #1.1: Type: text/plain, Size: 771 bytes --]
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.
--
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
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan
next prev parent reply other threads:[~2016-01-31 5:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-27 11:39 [PATCH 0/5] cppmagic: Preprocessor tricks David Gibson
2016-01-27 11:39 ` [PATCH 1/5] cppmagic: New module David Gibson
2016-01-27 11:39 ` [PATCH 2/5] cppmagic: Logical operations David Gibson
2016-01-27 11:39 ` [PATCH 3/5] cppmagic: Conditionals David Gibson
2016-01-27 11:40 ` [PATCH 4/5] cppmagic: Allow multiple and deferred evaluation David Gibson
2016-01-27 11:40 ` [PATCH 5/5] cppmagic: Iteration David Gibson
2016-01-30 12:51 ` David Gibson [this message]
2016-02-01 1:51 ` [PATCH 0/5] cppmagic: Preprocessor tricks Rusty Russell
2016-02-01 3:59 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160130125109.GS23043@voom.redhat.com \
--to=david@gibson.dropbear.id.au \
--cc=ccan@lists.ozlabs.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox