Browse Source Download (without any required ccan dependencies)

Module:

cppmagic

Summary:

Abuse of the C preprocessor

Description:

This contains a bunch of fancy macro techniques such as preprocessor-time evaluated conditionals and (quasi) recursion and iteration.

It's based on these articles:

 - http://jhnet.co.uk/articles/cpp_magic
 - https://github.com/pfultz2/Cloak/wiki/C-Preprocessor-tricks,-tips,-and-idioms

and code from the Boost C++ library.

License:

BSD-MIT