Quantcast
Channel: Codecraft » macros
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

How Enums Spread Disease — And How To Cure It

Poorly handled enums can infect code with fragility and tight coupling like a digital Typhoid Mary. Say you’re writing software that optimizes traffic flow patterns, and you need to model different...

View Article


Image may be NSFW.
Clik here to view.

Variadic macros tricks

Have you ever wanted to write a “for each” loop over all the args of a variadic macro? Or have you ever wanted to overload a macro on the number of arguments? (If you’re saying to yourself, “good...

View Article

Browsing latest articles
Browse All 2 View Live