2014-06-01 17:55:23 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the DXX-Rebirth project <http://www.dxx-rebirth.com/>.
|
|
|
|
* It is copyright by its individual contributors, as recorded in the
|
|
|
|
* project's Git history. See COPYING.txt at the top level for license
|
|
|
|
* terms and a link to the Git history.
|
|
|
|
*/
|
2009-03-04 21:04:43 +00:00
|
|
|
/* Version defines */
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2015-02-14 22:48:29 +00:00
|
|
|
#pragma once
|
2006-03-20 16:43:15 +00:00
|
|
|
|
2016-09-11 18:49:16 +00:00
|
|
|
#define DXX_STRINGIZE2(X) #X
|
|
|
|
#define DXX_STRINGIZE(X) DXX_STRINGIZE2(X)
|
2012-09-01 21:24:00 +00:00
|
|
|
|
2014-09-17 02:45:32 +00:00
|
|
|
#define VERSID_EXTRACT_0(A,...) A
|
|
|
|
#define VERSID_EXTRACT_1(A,B,...) B
|
|
|
|
#define VERSID_EXTRACT_2(A,B,C,...) C
|
|
|
|
#define VERSID_EXTRACT_SEQ(F,S) F(S)
|
|
|
|
|
2015-02-14 22:48:29 +00:00
|
|
|
#define DXX_VERSION_MAJORiu VERSID_EXTRACT_SEQ(VERSID_EXTRACT_0, DXX_VERSION_SEQ)
|
|
|
|
#define DXX_VERSION_MINORiu VERSID_EXTRACT_SEQ(VERSID_EXTRACT_1, DXX_VERSION_SEQ)
|
|
|
|
#define DXX_VERSION_MICROiu VERSID_EXTRACT_SEQ(VERSID_EXTRACT_2, DXX_VERSION_SEQ)
|
2014-09-17 02:45:32 +00:00
|
|
|
|
2015-02-14 22:48:29 +00:00
|
|
|
#define DXX_VERSION_MAJORi static_cast<uint16_t>(DXX_VERSION_MAJORiu)
|
|
|
|
#define DXX_VERSION_MINORi static_cast<uint16_t>(DXX_VERSION_MINORiu)
|
|
|
|
#define DXX_VERSION_MICROi static_cast<uint16_t>(DXX_VERSION_MICROiu)
|
|
|
|
|
2016-09-11 18:49:16 +00:00
|
|
|
#define DXX_VERSION_STR \
|
|
|
|
DXX_STRINGIZE(DXX_VERSION_MAJORiu) "." \
|
|
|
|
DXX_STRINGIZE(DXX_VERSION_MINORiu) "." \
|
|
|
|
DXX_STRINGIZE(DXX_VERSION_MICROiu)
|
2013-03-03 01:03:33 +00:00
|
|
|
#if defined(DXX_BUILD_DESCENT_I)
|
|
|
|
#define BASED_VERSION "Registered v1.5 Jan 5, 1996"
|
2013-03-31 17:24:44 +00:00
|
|
|
#elif defined(DXX_BUILD_DESCENT_II)
|
|
|
|
#define BASED_VERSION "Full Version v1.2"
|
|
|
|
#endif
|
|
|
|
|
2012-06-09 15:19:29 +00:00
|
|
|
#define DESCENT_VERSION g_descent_version
|
|
|
|
|
2014-07-26 17:40:12 +00:00
|
|
|
extern const char g_descent_version[];
|
2017-07-08 18:17:48 +00:00
|
|
|
extern const char g_descent_build_datetime[];
|