this post was submitted on 16 Jun 2023
3 points (100.0% liked)

C Programming for Low Level Hardware

256 readers
1 users here now

A subreddit dedicated to the C language with an emphasis on microcontrollers and low level hardware. However, all C discussion welcome :)

Related communities:

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] a2800276@lemmy.world 2 points 2 years ago

I think it depends, trivial min() and max() style functions are very common and considered acceptable, though I guess you could have been using inline for the last two decades...

The only time I got any serious usage out of preproc functions was writing a driver for an AT-command set cellular modem which involved writing a ton of repetitive code for each AT command.

I think I would prefer this sort of content in wrtten form though, cause I do it so seldom, I always need to look up syntactic specials like 'stringizing' where I even tend to forget the names of the concepts :)