What is the worst real-world macros/pre-processor abuse you've ever come across?
- by Trevor Boyd Smith
What is the worst real-world macros/pre-processor abuse you've ever come across (please no contrived IOCCC answers *haha*)?
Please add a short snippet or story if it is really entertaining. The goal is to teach something instead of always telling people "never use macros".
p.s.: I've used macros before... but usually I get rid of them eventually when I have a "real" solution (even if the real solution is inlined so it becomes similar to a macro).
Bonus: Give an example where the macro was really was better than a not-macro solution.
Related question: When are C++ macros beneficial?