Right now I have a debugging function, printPassport, in myfile.h file. It's declared as so:
#ifdef DEBUG
void printPassport(passport_t *passport);
#endif
This seems to be the proper way to do things, though it's been a while since I've used C so please correct me if I'm wrong.
Should I put guards around the function name in myfile.c? i.e. should I do
void printPassport(passport_t *passport) {
...
}
or
#ifdef DEBUG
void printPassport(passport_t *passport) {
...
}
#endif
in myfile.c?