Debian Codegraph @

engine/include/version.h

raw
1 // ____ _ __
2 // / __ )____ _____ | | / /___ ___________
3 // / __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
4 // / /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
5 // /_____/\____/____/ |__/|__/\__,_/_/ /____/
6 //
7 // A futuristic real-time strategy game.
8 // This file is part of Bos Wars.
9 //
10 /**@name version.h - The version of Bos Wars. */
11 //
12 // (c) Copyright 1998-2023 by Francois Beerten, Lutz Sammer and Jimmy Salmon
13 //
14 // This program is free software; you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation; only version 2 of the License.
17 //
18 // This program is distributed in the hope that it will be useful,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program; if not, write to the Free Software
25 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 // 02111-1307, USA.
27
28 #ifndef __VERSION_H__
29 #define __VERSION_H__
30
31 #ifndef StratagusMajorVerion
32 /// Stratagus major version
33 #define StratagusMajorVersion 2
34 /// Stratagus minor version (maximal 99)
35 #define StratagusMinorVersion 8
36 /// Stratagus patch level (maximal 99)
37 #define StratagusPatchLevel 0
38 /// Stratagus version (1,2,3) -> 10203
39 #define StratagusVersion \
40 (StratagusMajorVersion * 10000 + StratagusMinorVersion * 100 \
41 + StratagusPatchLevel)
42 /// Stratagus printf format string
43 #define StratagusFormatString "%d.%d.%d"
44 /// Stratagus printf format arguments
45 #define StratagusFormatArgs(v) (v) / 10000, ((v) / 100) % 100, (v) % 100
46 #endif
47
48 // Macros to do stringification of macros with numerical values
49 // See http://gcc.gnu.org/onlinedocs/cpp/Stringification.html for more details.
50 #define SN(x) STRINGIFY(x)
51 #define STRINGIFY(x) #x
52
53 /// Engine version shown at startup and in some files.
54 #define VERSION SN(StratagusMajorVersion) "." SN(StratagusMinorVersion) "." SN(StratagusPatchLevel)
55
56 #endif