#Define's scope throughout library?

Posted by Mohit Deshpande on Stack Overflow See other posts from Stack Overflow or by Mohit Deshpande
Published on 2010-04-15T23:00:50Z Indexed on 2010/04/15 23:03 UTC
Read the original article Hit count: 204

Filed under:
|
|

Say I have a constant:

#define PI 3.14

Say I have a static library with multiple header and source files. If I declare this in the header file, will its scope apply to all of the source files? Or do the source files need to include the header with the declaration of PI?

© Stack Overflow or respective owner

Related posts about scope

Related posts about define