this post was submitted on 11 Dec 2023
99 points (96.3% liked)

Programmer Humor

32070 readers
448 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I wasn’t sure how to express my gratitude.

It wasn’t bad for the occasional topical jest but holy shit does it make reading feeds painful.

Edit: in no way am I making a statement about code syntax. We don't write documentation in camel case for good reason.

you are viewing a single comment's thread
view the rest of the comments
[–] JoYo@lemmy.ml 5 points 9 months ago (1 children)

You didn't specify wide or ascii, we're all doomed.

I'm glad to to meet another Knight of 9x.

[–] sjmulder@lemmy.sdf.org 2 points 9 months ago* (last edited 9 months ago) (1 children)

That's handled by virtue of GetWittyReplyEx being #defined to GetWittyReplyExA and GetWittyReplyExW right? Just be aware that nMaxReplyMessage needs to be specified in bytes (excluding the null terminator!) but the returned length is in characters.

[–] JoYo@lemmy.ml 2 points 9 months ago (1 children)

well hopefully that's how you're writing it.

i've definitely found the ascii version of a syscall being called because that's what the linux project uses so why wouldn't the junior dev that was assigned the port do it too?

there's no #define that will save you from that. I may or may not have been that junior dev so no shade.