Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cppcheck --version
- Cppcheck 1.86
- # cppcheck --debug test.cpp -D_LIN_
- Checking test.cpp ...
- [test.cpp:8]: (error) #error "Product is not specified"
- # cat test.cpp
- #define __PROD_P1 1
- #define PROD(a) __PROD_##a
- #if PROD(P1)
- #define VER_SHORTPRODUCTNAME_STR "P1"
- #else
- #error "Product is not specified"
- #endif
- int main()
- {
- return 0;
- }
- # g++ test.cpp -o test
- # ./test
- # echo $?
- 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement