Hacker News new | ask | show | jobs
by mycall 2214 days ago
Unless you are doing embedded programming.
2 comments

Especially when you are doing embedded programming.

You think those GPIO registers are going to encode themselves?

Macros are the lifeblood of embedded C. I have a use case where I need to read, shift, and OR a value, then write back. If I need to do that for more than 1 thing, sure as shit I'll write a macro.