cppmagic: Conditionals
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 26 Jan 2016 10:00:01 +0000 (21:00 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 3 Feb 2016 22:44:13 +0000 (09:44 +1100)
commit395a2f841356e5bba4935a24093d30d67c1f3ef5
treed3393db5e0fa8ffad0265d791fabd18c7968045a
parentf92c112c47d4d9271b813fd6478d8d6b4b035e9d
cppmagic: Conditionals

Implement CPPMAGIC_IFELSE which operates similar to the C ? : operator, but
is evaluated at preprocessing time.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/cppmagic/cppmagic.h
ccan/cppmagic/test/run.c