src/main.h

changeset 37
c82a86ea87be
parent 34
cf0dfddf30f7
child 40
809a75a7113b
equal deleted inserted replaced
36:b8fa9171be6e 37:c82a86ea87be
1 /* 1 /*
2 * ZCinema: Zandronum demo launcher 2 * ZCinema: Zandronum demo launcher
3 * Copyright (C) 2013 Santeri Piippo 3 * Copyright (C) 2013-2015 Teemu Piippo
4 * 4 *
5 * This program is free software: you can redistribute it and/or modify 5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or 7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version. 8 * (at your option) any later version.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #ifndef ZCINEMA_MAIN_H 19 #pragma once
20 #define ZCINEMA_MAIN_H
21
22 #define APPNAME "ZCinema" 20 #define APPNAME "ZCinema"
23 #define UNIXNAME "zcinema" 21 #define UNIXNAME "zcinema"
24 #define VERSION_MAJOR 0 22 #define VERSION_MAJOR 1
25 #define VERSION_MINOR 1 23 #define VERSION_MINOR 0
26 #define VERSION_PATCH 0 24 #define VERSION_PATCH 0
27 #define BUILD_ID BUILD_BETA 25 // #define IS_RELEASE
28 #define RC_ID 0
29 26
30 #define BUILD_INTERNAL 0 27 #define MACRO_TO_STRING(A) MACRO_TO_STRING_(A)
31 #define BUILD_ALPHA 1 28 #define MACRO_TO_STRING_(A) #A
32 #define BUILD_BETA 2
33 #define BUILD_RC 3
34 #define BUILD_RELEASE 4
35 29
36 #define elif(A) else if (A) 30 #if VERSION_PATCH == 0
37 #define alias auto& 31 # define VERSION_STRING MACRO_TO_STRING (VERSION_MAJOR) \
32 "." MACRO_TO_STRING (VERSION_MINOR)
33 #else
34 # define VERSION_STRING MACRO_TO_STRING (VERSION_MAJOR) \
35 "." MACRO_TO_STRING (VERSION_MINOR) \
36 "." MACRO_TO_STRING (VERSION_PATCH)
37 #endif
38 38
39 #include <QSettings> 39 #include <QSettings>
40 #include "cfg.h" 40 #include "cfg.h"
41 41
42 struct VersionInfo;
43 static const std::nullptr_t null = nullptr;
44
45 QString versionString(); 42 QString versionString();
46 QString versionSignature(); 43 QString versionSignature();
47
48 #endif // ZCINEMA_MAIN_H

mercurial