view src/version.h @ 467:ac0ed5c1a1c4

working on drums.
author Robert McIntyre <rlm@mit.edu>
date Fri, 04 May 2012 05:17:18 -0500
parents f9f4f1b99eed
children
line wrap: on
line source
1 #ifndef VBA_VERSION_H
2 #define VBA_VERSION_H
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 #define STRINGIZE_VALUE(X) _Py_STRINGIZE2(X)
9 #define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
10 #define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
11 #define _Py_STRINGIZE2(X) #X
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
14 #if defined(_MSC_VER)
15 # define VBA_COMPILER ""
16 # define VBA_COMPILER_DETAIL " msvc " _Py_STRINGIZE(_MSC_VER)
17 #else
18 // TODO: make for others compilers
19 # define VBA_COMPILER ""
20 # define VBA_COMPILER_DETAIL ""
21 #endif
23 #define VBA_NAME "VBA-RR"
24 #define VBA_RR_MAJOR_VERSION_NO 23
25 #define VBA_RR_MINOR_VERSION_NO 5
27 #if !defined(_DEBUG) && (defined(WIN32) || defined(RC_INVOKED))
28 # include "../win32/userconfig/svnrev.h"
29 #endif
30 #
31 #ifndef SVN_REV
32 # define SVN_REV 0
33 #endif
35 #ifndef SVN_REV_STR
36 # if SVN_REV > 0
37 # define SVN_REV_STR STRINGIZE_VALUE(SVN_REV)
38 # else
39 # define define SVN_REV_STR ""
40 # endif
41 #endif
43 #ifdef _DEBUG
44 # define VBA_SUBVERSION_STRING " DEBUG"
45 # define VBA_BUILDTYPE_STRING "Debug"
46 #elif defined(PUBLIC_RELEASE)
47 # define VBA_SUBVERSION_STRING ""
48 # define VBA_BUILDTYPE_STRING "Release"
49 #else // interim
50 # define VBA_SUBVERSION_STRING " svn" SVN_REV_STR
51 # define VBA_BUILDTYPE_STRING "Interim"
52 #endif
54 #define VBA_FEATURE_STRING ""
56 #if VBA_RR_MINOR_VERSION_NO > 0
57 # define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO ## . ## VBA_RR_MINOR_VERSION_NO
58 #else
59 # define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO
60 #endif
62 #define VBA_VERSION_STRING "v" STRINGIZE_VALUE(VBA_RR_VERSION_NO) VBA_SUBVERSION_STRING VBA_FEATURE_STRING VBA_COMPILER
63 #define VBA_NAME_AND_VERSION VBA_NAME " " VBA_VERSION_STRING
64 #define VBA_RR_SITE "http://code.google.com/p/vba-rerecording/"
66 #endif // !VBA_VERSION_H