/awesome-c-preprocessor

A list of awesome C preprocessor stuff

MIT LicenseMIT

awesome-c-preprocessor

A list of awesome C preprocessor stuff

See also: "The Preprocessor Iceberg Meme".

Metaprogramming frameworks

C language extensions

Compilers/Interpreters

Debuggers

Other projects

  • mcpp -- A portable C preprocessor.
  • swansontec/map-macro -- A recursive C preprocessor macro which performs an operation on each element of a list.
  • M4GNV5/CppFun -- Math in the C pre-processor by breaking up Numbers into arrays of 8 bits and implementing common operations on those arrays.
  • ramdeoshubham/macros -- A collection of commonly used C MACROS.
  • agrif/Makefile -- A horrible, horrible, wonderful C Preprocessor hack library.
  • notfoundry/wtf.c -- 4-bit ALU metaprogrammed in C11's _Generic.
  • kcning/binom -- C macro that computes binominal coefficient at compile time.
  • ldionne/cisp -- A C preprocessor library implementing object semantics.
  • rofl0r/thread_wrapper -- A thread launcher wrapper macro which removes the boilerplate and allows to call any non-void function as a separate thread (needs BOOST preprocessor lib, which is C compatible).
  • 18sg/uSHET -- A Malloc-Free SHET Client Library for Microcontrollers (lib/cpp_magic.h).
  • ScrimpyCat/CommonC -- Common utilities for C (CommonC/Template.h).
  • cher-nov/Gena -- Generic pseudo-templated containers for C. Written entirely in C89 with design inspired by the C++ STL.
  • DiscordPP/discordpp and DiscordPP/plugin-native -- A modular Discord library and a module for it that use macros to define Discord API endpoints and objects.

Articles

Jens Gustedt's Blog

Link: https://gustedt.wordpress.com/category/c99/preprocessor/.

Some worth-noting articles:

SO questions