- Use macros to form version number and string. CPPCHECK_MAJOR, CPPCHECK_MINOR and CPPCHECK_DEVMINOR now contain the parts of the version number. - "dev" status is now detected by comparison of CPPCHECK_MINOR and CPPCHECK_DEVMINOR, version string created accordingly. Fixed two comments.
14 lines
561 B
C
14 lines
561 B
C
#define CPPCHECK_MAJOR 1
|
|
#define CPPCHECK_MINOR 66
|
|
#define CPPCHECK_DEVMINOR 67
|
|
|
|
#define STRINGIFY(VER) #VER
|
|
#if CPPCHECK_MINOR == CPPCHECK_DEVMINOR
|
|
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR)
|
|
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,0,0
|
|
#else
|
|
#define CPPCHECK_VERSION_STRING STRINGIFY(CPPCHECK_MAJOR) "." STRINGIFY(CPPCHECK_DEVMINOR) " dev"
|
|
#define CPPCHECK_VERSION CPPCHECK_MAJOR,CPPCHECK_MINOR,99,0
|
|
#endif
|
|
#define LEGALCOPYRIGHT L"Copyright (C) 2007-2014 Daniel Marjam\x00E4ki and Cppcheck team."
|