A
Alex Buell
A previous thread about macros just reminded me to ask this. I have
avoided using macros and defined some constants i.e.:
const int BYTES_PER_TRACK = 10 * 256;
const int TRACK0_SS_OFFSET = 0;
const int TRACK0_SS_OFFSET = 10 * 256;
Now, the problem is that I have several modules in my project that
references these constants, so I have to use 'extern const in
BYTES_PER_TRACK' etc., in the main header file so the constants are
available to other modules.
I feel that in a situation like that wouldn't it be better to use
macros intead? Or not?
Thanks for any insights offered.
avoided using macros and defined some constants i.e.:
const int BYTES_PER_TRACK = 10 * 256;
const int TRACK0_SS_OFFSET = 0;
const int TRACK0_SS_OFFSET = 10 * 256;
Now, the problem is that I have several modules in my project that
references these constants, so I have to use 'extern const in
BYTES_PER_TRACK' etc., in the main header file so the constants are
available to other modules.
I feel that in a situation like that wouldn't it be better to use
macros intead? Or not?
Thanks for any insights offered.