Where do I put all these function-like #defines, in C?

Posted by Tristan on Stack Overflow See other posts from Stack Overflow or by Tristan
Published on 2010-03-11T21:00:08Z Indexed on 2010/03/11 21:04 UTC
Read the original article Hit count: 191

I'm working with an embedded system, and I'm ending up with a ton of HW-interfacing #define functions. I want to put all of these into a separate file (for OOP-ness), but I don't know the best way to #include that. Do I just put them all into a .c file, then include that? Seems silly to put these in a .h file.

© Stack Overflow or respective owner

Related posts about c

    Related posts about code-organization