TSP Solver and Generator
src/version.h
Go to the documentation of this file.
00001 
00028 #ifndef VERSION_H
00029 #define VERSION_H
00030 
00031 #ifndef BUILD_VERSION_MAJOR
00032 
00033 #   define BUILD_VERSION_MAJOR 0
00034 #endif // BUILD_VERSION_MAJOR
00035 #ifndef BUILD_VERSION_MINOR
00036 
00037 #   define BUILD_VERSION_MINOR 0
00038 #endif // BUILD_VERSION_MINOR
00039 #ifndef BUILD_RELEASE
00040 
00041 #   define BUILD_RELEASE 0
00042 #endif // BUILD_RELEASE
00043 
00044 #ifndef BUILD_NUMBER
00045 
00046 #   define BUILD_NUMBER 0
00047 #endif // BUILD_NUMBER
00048 
00053 #ifdef DEBUG
00054 #   ifndef BUILD_STATUS_TYPE
00055 #       define BUILD_STATUS (debug build BUILD_NUMBER)
00056 #   else
00057 #       define BUILD_STATUS (debug BUILD_STATUS_TYPE BUILD_STATUS_NUMBER)
00058 #   endif
00059 #else
00060 #   if !defined(TSPSG_RELEASE_BUILD)
00061 #       define BUILD_STATUS (nightly build)
00062 #   elif !defined(BUILD_STATUS_TYPE)
00063 #       define BUILD_STATUS (build BUILD_NUMBER)
00064 #   else
00065 #       define BUILD_STATUS (BUILD_STATUS_TYPE BUILD_STATUS_NUMBER)
00066 #   endif // TSPSG_RELEASE_BUILD
00067 #endif // DEBUG
00068 
00070 #define QUOTE_X(x) #x
00071 
00072 #define QUOTE(x) QUOTE_X(x)
00073 
00075 #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS)
00076 
00077 #endif // VERSION_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines