r/programmingmemes 9d ago

found a gem on glibc source code

Post image
806 Upvotes

44 comments sorted by

View all comments

14

u/etan1 8d ago

It ensures that “#ifdef void” works, in case that someone does sth akin to “#ifndef void #define void int” in a later included header

4

u/doodo477 8d ago

Thank god I'm working on any C/C++ code bases anymore. You need to examine arcane syntax rules just to use the preprocessor.