Re:Macros on Steroids: How pure C can benefit from metaprogr...
by glouwbug on Friday July 23, 2021 @02:46PM
(#27934239)
Templated C is totally possible. It’s just a little verbose, but you get used to it. For instance, an alternative to void pointers while maintaining compile time type safety and gaining speed and maintainability looks something like this:
github.com/glouw/ctl
Check CTL/vec.h, for instance