Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Tail Recursion for Macros in C (gustedt.wordpress.com)
13 points by ingve on July 19, 2024 | hide | past | favorite | 2 comments


I was wondering the same thing about making macros optionally recursive. Because if they were recursive, then that feature and `__VA_OPT__` would be enough to make them Turing-complete.


An alternative in pure cpp is https://github.com/swansontec/map-macro




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

Search: