c++ - Should we include a macro(#define) in both .h & .cpp files -
if use them in both files. going term "macro" in c++ it's replacement mechanism(doesn't know c++ structure) happens in pre-compilation stage.
is reason should define macro(#define) in both files or doesn't need or missing anything.?
defining macro in .h file , including .h file in .cpp file enough.
Comments
Post a Comment