Best C Marco Preprocessor Tutorial? (Book or Website)

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • metalang99

    Full-blown preprocessor metaprogramming

    There was a time that I wanted to write such a book but then realised that it's better to just create a third-party library and not to confuse users with abstruse macro techniques, but to encapsulate them and provide a nice interface. For example, you can workaround the preprocessor in such a way to implement recursion, but practically it's just too complicated to use directly. So I created Metalang99 -- a preprocessor metaprogramming library that allows writing fairly complicated macros. You can find a tutorial and references to prior art in the README.

  • c_exceptional

    A simple Exception-handling library for C99, that uses some fancy macros for true try{...}catch(err){...}finally{...} syntax!

    Metaprogramming custom control structures in C is a very good resource. I used those techniques to for instance create a C99 exception library: exceptional.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • preprocessor

    Boost.org preprocessor module (by boostorg)

    Mostly by browsing the code of Boost/Preprocessor and reading the Cloak wiki.

  • awesome-c-preprocessor

    A list of awesome C preprocessor stuff

    Also, forgot to say that there's a collection of mad preprocessor stuff: awesome-c-preprocessor.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts