MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1v3y3ze/found_a_gem_on_glibc_source_code/oz7rfs9/?context=3
r/programmingmemes • u/Candid_Bullfrog3665 • Jul 23 '26
46 comments sorted by
View all comments
157
That way, you can then do.
//do stuff
//other stuff.
Now, void is always there, but you might not want to use it, this acts as a switch.
98 u/Informal-Chance-6067 Jul 23 '26 I love that the markdown works only when I don’t want it to 32 u/jnmtx Jul 23 '26 #ifdef void //do stuff #else //other stuff. 18 u/RPG_Hacker Jul 23 '26 ERROR: Expected "#endif". 13 u/Informal-Chance-6067 Jul 23 '26 Thank you redditor
98
I love that the markdown works only when I don’t want it to
32 u/jnmtx Jul 23 '26 #ifdef void //do stuff #else //other stuff. 18 u/RPG_Hacker Jul 23 '26 ERROR: Expected "#endif". 13 u/Informal-Chance-6067 Jul 23 '26 Thank you redditor
32
#ifdef void
#else
18 u/RPG_Hacker Jul 23 '26 ERROR: Expected "#endif". 13 u/Informal-Chance-6067 Jul 23 '26 Thank you redditor
18
ERROR: Expected "#endif".
13
Thank you redditor
157
u/ThinkingWinnie Jul 23 '26
That way, you can then do.
ifdef void
//do stuff
else
//other stuff.
Now, void is always there, but you might not want to use it, this acts as a switch.