this post was submitted on 27 Jul 2023
1092 points (99.7% liked)

Programmer Humor

31340 readers
1272 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] vicfic@iusearchlinux.fyi 23 points 11 months ago (1 children)

fr, I didn't know dat macros could be used to make nu programming languages.

[โ€“] Dogeek@sh.itjust.works 8 points 11 months ago

#define is nothing but a search and replace from the preprocessor.

I've been burned one too many times with #include which replaces the directive with the contents of the included headers file (I think that if you're truly evil you can even include straight .c files and forgo headers entirely)