sources/version.cpp

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:
33 // is recompiled whenever hginfo.h changes! 33 // is recompiled whenever hginfo.h changes!
34 // 34 //
35 35
36 #include <stdio.h> 36 #include <stdio.h>
37 #include <string.h> 37 #include <string.h>
38 #include "basics.h"
38 #include "version.h" 39 #include "version.h"
39 #include "hginfo.h" 40 #include "hginfo.h"
41
42 #define VERSION_MAJOR 1
43 #define VERSION_MINOR 2
44 #define VERSION_PATCH 0
45
46 #if VERSION_PATCH == 0
47 # define VERSION_STRING \
48 MACRO_TO_STRING (VERSION_MAJOR) \
49 "." MACRO_TO_STRING (VERSION_MINOR)
50 #else
51 # define VERSION_STRING \
52 MACRO_TO_STRING (VERSION_MAJOR) \
53 "." MACRO_TO_STRING (VERSION_MINOR) \
54 "." MACRO_TO_STRING (VERSION_PATCH)
55 #endif
56
57 // -------------------------------------------------------------------------------------------------
58 //
59 const char* application_name()
60 {
61 return "ZFC9000";
62 }
63
64 // -------------------------------------------------------------------------------------------------
65 //
66 const char* version_string()
67 {
68 return VERSION_STRING;
69 }
40 70
41 // ------------------------------------------------------------------------------------------------- 71 // -------------------------------------------------------------------------------------------------
42 // 72 //
43 const char* full_version_string() 73 const char* full_version_string()
44 { 74 {

mercurial