O'Reilly logo

Learn C the Hard Way: A Clear & Direct Introduction To Modern C Programming by Zed A. Shaw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercise 19. Zed’s Awesome Debug Macros

There’s a reoccurring problem in C that we’ve been dancing around, but I’m going to solve it in this exercise using a set of macros I developed. You can thank me later when you realize how insanely awesome these macros are. Right now, you don’t know how awesome they are, so you’ll just have to use them, and then you can walk up to me one day and say, “Zed, those debug macros were the bomb. I owe you my firstborn child because you saved me a decade of heartache and prevented me from killing myself more than once. Thank you, good sir, here’s a million dollars and the original Snakehead Telecaster prototype signed by Leo Fender.”

Yes, they are that awesome.

The C Error-Handling Problem

Handling errors is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required