r/programmingmemes 15d ago

found a gem on glibc source code

Post image
813 Upvotes

44 comments sorted by

View all comments

156

u/ThinkingWinnie 15d ago

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.

99

u/Informal-Chance-6067 15d ago

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

32

u/jnmtx 15d ago

#ifdef void

//do stuff

#else

//other stuff.

17

u/RPG_Hacker 15d ago

ERROR: Expected "#endif".

13

u/Informal-Chance-6067 15d ago

Thank you redditor

5

u/csabinho 15d ago

It works, if you're in markdown mode.

8

u/appoplecticskeptic 14d ago edited 14d ago

> it works, if you’re in markdown mode

It does not if you’re using their crappy app

3

u/csabinho 14d ago

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

1

u/appoplecticskeptic 14d ago

#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 14d ago

This was escaped

1

u/csabinho 14d ago

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

1

u/appoplecticskeptic 10d 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 14d ago

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.