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 |