Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is truly quite insane. I'd like to note that there seems to be much more to it than the one file linked here, it references other macros defined in other files.

Also, the author says that you can use this "to drastically improve quality of your code -- make it safer, cleaner, and more maintainable."

I hope this is somewhat sarcastic, because I doubt just about anyone else would like to find your code using this.



This was not sarcastic; I've explained in more detail in my blog post: https://hirrolot.github.io/posts/macros-on-steroids-or-how-c....

The linked code uses other macros too, that's right, since it's written in a metalanguage atop of the standard preprocessor.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: