sources/version.h

branch
protocol5
changeset 131
4996c8684b93
parent 126
6a0d6bddf2ab
child 190
90bf9049e5eb
equal deleted inserted replaced
130:9f54db6f9922 131:4996c8684b93
1 /* 1 /*
2 Copyright 2014, 2015 Teemu Piippo 2 Copyright 2014 - 2016 Teemu Piippo
3 All rights reserved. 3 All rights reserved.
4 4
5 Redistribution and use in source and binary forms, with or without 5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions 6 modification, are permitted provided that the following conditions
7 are met: 7 are met:
27 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #pragma once 31 #pragma once
32 #include "basics.h"
33 #define APPNAME "zfc9000"
34 #define VERSION_MAJOR 1
35 #define VERSION_MINOR 1
36 #define VERSION_PATCH 0
37 // #define IS_RELEASE
38 32
39 // ------------------------------------------------------------------------------------------------- 33 // Returns the application name (ZFC9000)
40 // Version string 34 const char* application_name();
41 35
42 #if VERSION_PATCH == 0
43 # define VERSION_STRING \
44 MACRO_TO_STRING (VERSION_MAJOR) \
45 "." MACRO_TO_STRING (VERSION_MINOR)
46 #else
47 # define VERSION_STRING \
48 MACRO_TO_STRING (VERSION_MAJOR) \
49 "." MACRO_TO_STRING (VERSION_MINOR) \
50 "." MACRO_TO_STRING (VERSION_PATCH)
51 #endif
52
53 // -------------------------------------------------------------------------------------------------
54 // Returns the bare version string (1.2.3) 36 // Returns the bare version string (1.2.3)
55 37 const char* version_string();
56 inline const char* version_string()
57 {
58 return VERSION_STRING;
59 }
60 38
61 // Returns full version string, with hash (1.2.3-abcd456) 39 // Returns full version string, with hash (1.2.3-abcd456)
62 const char* full_version_string(); 40 const char* full_version_string();
63 41
64 // Returns changeset date string 42 // Returns changeset date string

mercurial