3 ms·
and now you need to add a .h to where ever you need to call those function. This .h will need to know if it got included multiple times, and so isn't just a tri
by chii 5y ago
and now you need to add a .h to where ever you need to call those function. This .h will need to know if it got included multiple times, and so isn't just a trivial declaration.
It's just easier to have a single .h you include.
- charcircuit 5y ago>to add a .h to where ever you need to call those function No, it can be in a single place and you can just #include it. >This .h will need to know if it got included multiple times, and so isn't just a trivial declaration. This is the point of using header guards. >It's just easier to have a single .h you include. Depending on the build tool it's the same or only marginally easier (you save like 10 characters)