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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -