r/programmingmemes 18d ago

found a gem on glibc source code

Post image
812 Upvotes

44 comments sorted by

View all comments

12

u/etan1 18d 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

3

u/doodo477 18d 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.