3 ms·
Maybe it would make more sense if you used only .c files; people typically expect only prototypes, type definitions, macros and so on in .h files. Including on
by sjamaan 7y ago
Maybe it would make more sense if you used only .c files; people typically expect only prototypes, type definitions, macros and so on in .h files.
Including one .c file in another is a bit odd, but less surprising. But then having include guards makes the entire thing a bit weird :)
- zakirullin 7y agoHaha. Yup, I know that, of course. And I have never used that practice in real world projects. Well, I'll put both .c/.h files, that doesn't add that much overhead.