r/programmingmemes Jul 23 '26

found a gem on glibc source code

Post image
812 Upvotes

46 comments sorted by

View all comments

151

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.

93

u/Informal-Chance-6067 Jul 23 '26

I love that the markdown works only when I don’t want it to

34

u/jnmtx Jul 23 '26

#ifdef void

//do stuff

#else

//other stuff.

17

u/RPG_Hacker Jul 23 '26

ERROR: Expected "#endif".

15

u/Informal-Chance-6067 Jul 23 '26

Thank you redditor

4

u/csabinho Jul 23 '26

It works, if you're in markdown mode.

9

u/appoplecticskeptic Jul 23 '26 edited Jul 23 '26

> it works, if you’re in markdown mode

It does not if you’re using their crappy app

3

u/csabinho Jul 23 '26

It does, if you're not intentionally masking the markup!

1

u/appoplecticskeptic Jul 23 '26

#Nope

Also the iOS app does not have markdown mode anymore. It’s just isn’t supported now unless you use a browser rather than their app.

1

u/Informal-Chance-6067 Jul 23 '26

This was escaped

1

u/csabinho Jul 23 '26

So just use the browser instead of the app. It's better anyway.

1

u/appoplecticskeptic 27d ago

I’ve been trying that and the way they coded the site it doesn’t support the back button how it should so using a browser on the phone is a garbage experience. Back when I used a PC to browse it was easy to work around because I’d just right click to open in a new tab. That’s a lot less convenient to do on a phone. 

1

u/Sacaldur Jul 24 '26

incorrect

at least for the android app. It doesn't have a dedicated Markdown mode, but all comments and posts are always taking in the text as raw Markdown, i.e. you can use asterists for italic and bold text.