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 ...
Get Learn C the Hard Way: A Clear & Direct Introduction To Modern C Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.