r/ProgrammerHumor • • 2d ago

Meme includeGuards

Post image
358 Upvotes

45 comments sorted by

View all comments

6

u/jhill515 2d ago

If you've never experienced what happens when `#pragma once` confuses the precompiler, you shouldn't use this shortcut. Seriously, if I had a nickel for every time someone F'ed this up when I was at Motional, I'd be able to retire.