Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**** consts.h ******/
- #ifndef CONSTS_H
- #define CONSTS_H
- namespace Consts {
- const int TEST = 1;
- }
- #endif
- /***** test1.cpp ******/
- #include "consts.h"
- int foo1() { return Consts::TEST+1 }
- /***** test2.cpp ******/
- #include "consts.h"
- int foo2() { return Consts::TEST+2 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement