Fix version number macros

This commit is contained in:
Alexander Mai 2014-09-04 21:18:15 +02:00
parent b3e4abd82a
commit 65f599bd9e
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
#define CPPCHECK_MINOR 66
#define CPPCHECK_DEVMINOR 67
#define STRINGIFY(VER) #VER
#define STRINGIFY(x) STRING(x)
#define STRING(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