this post was submitted on 09 Feb 2024
863 points (97.5% liked)
Programmer Humor
27726 readers
78 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
__LINE__returns the line of code its on, and% 10means "remainder 10." Examples:In code,
0meansfalseand1(and2,3,4, ...) meanstrue.So, if on line 10, you say:
then it will expand to:
if you add a line before it, so that the code moves to line 11, then suddenly it works: