source: tspsg/src/version.h @ c10297cf73

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since c10297cf73 was aaf2113307, checked in by Oleksii Serdiuk, 15 years ago

+ Implemented File/Save? action.
+ Added "Save Solution" and "Back to Task" buttons to Solution tab for better usability.

  • Increased maximum number of cities to 20. Solving for 18-20 cities is already takes much time, so I thought it doesn't make sense to increase more.
  • Columns and rows are now resized to contents on all platforms.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2 *  TSPSG: TSP Solver and Generator
3 *  Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
4 *
5 *  $Id$
6 *  $URL$
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
27#define BUILD_VERSION_MAJOR 0
28#define BUILD_VERSION_MINOR 1
29#define BUILD_RELEASE 2
30// This will only change on releases and will be the same as revision number
31#define BUILD_NUMBER 65535
32// Release number meanings:
33//   1  --  3: alpha 1 to 3
34//   4  --  7: beta 1 to 4
35//   8  -- 10: rc 1 to 3
36//   11 --...: release 1 to ...
37#if BUILD_NUMBER == 65535
38        #define BUILD_STATUS (dev build)
39#elif BUILD_RELEASE < 4
40        #define BUILD_STATUS (alpha)
41#elif BUILD_RELEASE < 8
42        #define BUILD_STATUS (beta)
43#elif BUILD_RELEASE < 11
44        #define BUILD_STATUS (rc)
45#endif // BUILD_NUMBER == 65535
46
47// "Converting" x to quoted string
48#define QUOTE_X(x) #x
49#define QUOTE(x) QUOTE_X(x)
50
51#ifndef BUILD_STATUS
52        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE)
53#else
54        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS)
55#endif
56
57#endif // VERSION_H
Note: See TracBrowser for help on using the repository browser.