annotate src/version.h @ 359:8c474d1d6956

script: got leomnades and TM13, shopping is complete.
author Robert McIntyre <rlm@mit.edu>
date Mon, 09 Apr 2012 08:27:45 -0500
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #ifndef VBA_VERSION_H
rlm@1 2 #define VBA_VERSION_H
rlm@1 3
rlm@1 4 #if _MSC_VER > 1000
rlm@1 5 #pragma once
rlm@1 6 #endif // _MSC_VER > 1000
rlm@1 7
rlm@1 8 #define STRINGIZE_VALUE(X) _Py_STRINGIZE2(X)
rlm@1 9 #define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
rlm@1 10 #define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
rlm@1 11 #define _Py_STRINGIZE2(X) #X
rlm@1 12 //re: http://72.14.203.104/search?q=cache:HG-okth5NGkJ:mail.python.org/pipermail/python-checkins/2002-November/030704.html+_msc_ver+compiler+version+string&hl=en&gl=us&ct=clnk&cd=5
rlm@1 13
rlm@1 14 #if defined(_MSC_VER)
rlm@1 15 # define VBA_COMPILER ""
rlm@1 16 # define VBA_COMPILER_DETAIL " msvc " _Py_STRINGIZE(_MSC_VER)
rlm@1 17 #else
rlm@1 18 // TODO: make for others compilers
rlm@1 19 # define VBA_COMPILER ""
rlm@1 20 # define VBA_COMPILER_DETAIL ""
rlm@1 21 #endif
rlm@1 22
rlm@1 23 #define VBA_NAME "VBA-RR"
rlm@1 24 #define VBA_RR_MAJOR_VERSION_NO 23
rlm@1 25 #define VBA_RR_MINOR_VERSION_NO 5
rlm@1 26
rlm@1 27 #if !defined(_DEBUG) && (defined(WIN32) || defined(RC_INVOKED))
rlm@1 28 # include "../win32/userconfig/svnrev.h"
rlm@1 29 #endif
rlm@1 30 #
rlm@1 31 #ifndef SVN_REV
rlm@1 32 # define SVN_REV 0
rlm@1 33 #endif
rlm@1 34
rlm@1 35 #ifndef SVN_REV_STR
rlm@1 36 # if SVN_REV > 0
rlm@1 37 # define SVN_REV_STR STRINGIZE_VALUE(SVN_REV)
rlm@1 38 # else
rlm@1 39 # define define SVN_REV_STR ""
rlm@1 40 # endif
rlm@1 41 #endif
rlm@1 42
rlm@1 43 #ifdef _DEBUG
rlm@1 44 # define VBA_SUBVERSION_STRING " DEBUG"
rlm@1 45 # define VBA_BUILDTYPE_STRING "Debug"
rlm@1 46 #elif defined(PUBLIC_RELEASE)
rlm@1 47 # define VBA_SUBVERSION_STRING ""
rlm@1 48 # define VBA_BUILDTYPE_STRING "Release"
rlm@1 49 #else // interim
rlm@1 50 # define VBA_SUBVERSION_STRING " svn" SVN_REV_STR
rlm@1 51 # define VBA_BUILDTYPE_STRING "Interim"
rlm@1 52 #endif
rlm@1 53
rlm@1 54 #define VBA_FEATURE_STRING ""
rlm@1 55
rlm@1 56 #if VBA_RR_MINOR_VERSION_NO > 0
rlm@1 57 # define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO ## . ## VBA_RR_MINOR_VERSION_NO
rlm@1 58 #else
rlm@1 59 # define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO
rlm@1 60 #endif
rlm@1 61
rlm@1 62 #define VBA_VERSION_STRING "v" STRINGIZE_VALUE(VBA_RR_VERSION_NO) VBA_SUBVERSION_STRING VBA_FEATURE_STRING VBA_COMPILER
rlm@1 63 #define VBA_NAME_AND_VERSION VBA_NAME " " VBA_VERSION_STRING
rlm@1 64 #define VBA_RR_SITE "http://code.google.com/p/vba-rerecording/"
rlm@1 65
rlm@1 66 #endif // !VBA_VERSION_H