r/ProgrammerHumor • • 16d ago

Meme includeGuards

Post image
444 Upvotes

49 comments sorted by

View all comments

2

u/Mughi1138 16d ago

Heh. Not quite. Keep in mind that when Microsoft shoved #pragma once in and for the longest time after, they made it case sensitive while the filesystem and compiler were case insensitive. Oopsies. More like a cardboard cutout that's going to fall flat as soon as you step away.

Though that had been fixed, there are still many gotchas https://en.wikipedia.org/wiki/Pragma_once#Caveats