diff src/version.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/version.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,66 @@
     1.4 +#ifndef VBA_VERSION_H
     1.5 +#define VBA_VERSION_H
     1.6 +
     1.7 +#if _MSC_VER > 1000
     1.8 +#pragma once
     1.9 +#endif // _MSC_VER > 1000
    1.10 +
    1.11 +#define STRINGIZE_VALUE(X) _Py_STRINGIZE2(X)
    1.12 +#define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
    1.13 +#define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
    1.14 +#define _Py_STRINGIZE2(X) #X
    1.15 +//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
    1.16 +
    1.17 +#if defined(_MSC_VER)
    1.18 +#	define VBA_COMPILER ""
    1.19 +#	define VBA_COMPILER_DETAIL " msvc " _Py_STRINGIZE(_MSC_VER)
    1.20 +#else
    1.21 +// TODO: make for others compilers
    1.22 +#	define VBA_COMPILER ""
    1.23 +#	define VBA_COMPILER_DETAIL ""
    1.24 +#endif
    1.25 +
    1.26 +#define VBA_NAME "VBA-RR"
    1.27 +#define VBA_RR_MAJOR_VERSION_NO 23
    1.28 +#define VBA_RR_MINOR_VERSION_NO 5
    1.29 +
    1.30 +#if !defined(_DEBUG) && (defined(WIN32) || defined(RC_INVOKED))
    1.31 +#	include "../win32/userconfig/svnrev.h"
    1.32 +#endif
    1.33 +#
    1.34 +#ifndef SVN_REV
    1.35 +#	define SVN_REV 0
    1.36 +#endif
    1.37 +
    1.38 +#ifndef SVN_REV_STR
    1.39 +#	if SVN_REV > 0
    1.40 +#		define SVN_REV_STR STRINGIZE_VALUE(SVN_REV)
    1.41 +#	else
    1.42 +#		define define SVN_REV_STR ""
    1.43 +#	endif
    1.44 +#endif
    1.45 +
    1.46 +#ifdef _DEBUG
    1.47 +#	define VBA_SUBVERSION_STRING " DEBUG"
    1.48 +#	define VBA_BUILDTYPE_STRING  "Debug"
    1.49 +#elif defined(PUBLIC_RELEASE)
    1.50 +#	define VBA_SUBVERSION_STRING ""
    1.51 +#	define VBA_BUILDTYPE_STRING  "Release"
    1.52 +#else // interim
    1.53 +#	define VBA_SUBVERSION_STRING " svn" SVN_REV_STR
    1.54 +#	define VBA_BUILDTYPE_STRING  "Interim"
    1.55 +#endif
    1.56 +
    1.57 +#define VBA_FEATURE_STRING ""
    1.58 +
    1.59 +#if VBA_RR_MINOR_VERSION_NO > 0
    1.60 +#	define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO ## . ## VBA_RR_MINOR_VERSION_NO
    1.61 +#else
    1.62 +#	define VBA_RR_VERSION_NO VBA_RR_MAJOR_VERSION_NO
    1.63 +#endif
    1.64 +
    1.65 +#define VBA_VERSION_STRING "v" STRINGIZE_VALUE(VBA_RR_VERSION_NO) VBA_SUBVERSION_STRING VBA_FEATURE_STRING VBA_COMPILER
    1.66 +#define VBA_NAME_AND_VERSION VBA_NAME " " VBA_VERSION_STRING
    1.67 +#define VBA_RR_SITE "http://code.google.com/p/vba-rerecording/"
    1.68 +
    1.69 +#endif // !VBA_VERSION_H