r/programminghorror • • Apr 09 '26

c++ macros :)

Post image
423 Upvotes

67 comments sorted by

View all comments

Show parent comment

5

u/nimrag_is_coming Apr 09 '26

Oh whoops reading it back it doesn't seem a bit like I meant it like that haha, that wasn't my intention.

It's used for precisely one function call at the start of the program and not other than that so it's just in a cpp file at the moment :)

5

u/Konfituren Apr 09 '26

Lmao no problemo, but tbh I'd throw it in a header either way just because I like my macros out of sight and out of mind once they're created. To each their own