C preprocessor almost solution.

Reviewed by @tolmasky.