Get the latest tech news

Recursive macros in C, demystified (once the ugly crying stops)


😭) In which it becomes clear, the C Preprocessor was designed by a Kafka fan So you have heard rumors whispered between peers, that a rare few people somehow manage to make compile-time recursion work in C? And you want to have some insight into how that might be possible?? I should warn you, you’re risking your sanity… but I’ll indulge you. Wait, did I really just say that? I must be a glutton for punishment, because the macro system is, by far, the thing I like least about C.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Recursive Macros

Recursive Macros

Photo of crying stops

crying stops

Related news:

News photo

Recursive Macros with C++20 __VA_OPT__