source: tspsg-svn/trunk/src/version.h @ 63

Last change on this file since 63 was 63, checked in by laleppa, 15 years ago
  • New TSPSG icon. Found some nice image among heap of images on my PC and thought it would be a nice icon for TSPSG. Original source: Internet (read, unknown).
  • Some insignificant code changes.
  • Property svn:keywords set to Id URL
File size: 1.8 KB
RevLine 
[42]1/*
2 *  TSPSG: TSP Solver and Generator
3 *  Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
4 *
5 *  $Id: version.h 63 2009-09-09 22:14:22Z laleppa $
6 *  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/version.h $
7 *
8 *  This file is part of TSPSG.
9 *
10 *  TSPSG is free software: you can redistribute it and/or modify
11 *  it under the terms of the GNU General Public License as published by
12 *  the Free Software Foundation, either version 3 of the License, or
13 *  (at your option) any later version.
14 *
15 *  TSPSG is distributed in the hope that it will be useful,
16 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *  GNU General Public License for more details.
19 *
20 *  You should have received a copy of the GNU General Public License
21 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef VERSION_H
25#define VERSION_H
26
[63]27#define VERSIONID "$Id: version.h 63 2009-09-09 22:14:22Z laleppa $"
[42]28#define BUILD_VERSION_MAJOR 0
29#define BUILD_VERSION_MINOR 1
[45]30#define BUILD_RELEASE 2
31// This will only change on releases and will be the same as revision number
32#define BUILD_NUMBER 65535
33// Release number meanings:
34//   1  --  3: alpha 1 to 3
35//   4  --  7: beta 1 to 4
36//   8  -- 10: rc 1 to 3
37//   11 --...: release 1 to ...
38#if BUILD_NUMBER == 65535
39        #define BUILD_STATUS (dev build)
40#elif BUILD_RELEASE < 4
41        #define BUILD_STATUS (alpha)
42#elif BUILD_RELEASE < 8
43        #define BUILD_STATUS (beta)
44#elif BUILD_RELEASE < 11
45        #define BUILD_STATUS (rc)
46#endif // BUILD_NUMBER == 65535
[42]47
[50]48// "Converting" x to quoted string
[42]49#define QUOTE_X(x) #x
50#define QUOTE(x) QUOTE_X(x)
51
[45]52#ifndef BUILD_STATUS
53        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE)
54#else
55        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS)
56#endif
[42]57
58#endif // VERSION_H
Note: See TracBrowser for help on using the repository browser.