864
Me after I got fired
(feddit.de)
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.
define it as ( __LINE__ % 10) so that the problem goes away when you add a debug statement
Can someone ELI5 what this does?
__LINE__
returns the line of code its on, and% 10
means "remainder 10." Examples:In code,
0
meansfalse
and1
(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: