News for hackers. Stuff that matters.
Re:Macros on Steroids: How pure C can benefit from metaprogr... by davidwf on Thursday July 22, 2021 @07:28PM (#27925559)
One use case that I'm really excited about considering this for is testing! I'm currently working on a project that uses a very straightforward C style and for the mainline processing we don't see a lot of duplication problems and aren't using macros much at all. However, as we try hard to get high unit test coverage I often find myself doing "macro magic" in my tests to remove boilerplate, and I'm excited to try out this tool to make our tests more awesome.
Re:Macros on Steroids: How pure C can benefit from metaprogr... by Hirrolot on Friday July 23, 2021 @02:41AM (#27927876)
That's cool, looking forward to any feedback when you're done.