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" |
32 #define APPNAME "zfc9000" |
34 #define VERSION_MAJOR 1 |
|
35 #define VERSION_MINOR 2 |
|
36 #define VERSION_PATCH 0 |
|
37 |
33 |
38 // ------------------------------------------------------------------------------------------------- |
|
39 // Version string |
|
40 |
|
41 #if VERSION_PATCH == 0 |
|
42 # define VERSION_STRING \ |
|
43 MACRO_TO_STRING (VERSION_MAJOR) \ |
|
44 "." MACRO_TO_STRING (VERSION_MINOR) |
|
45 #else |
|
46 # define VERSION_STRING \ |
|
47 MACRO_TO_STRING (VERSION_MAJOR) \ |
|
48 "." MACRO_TO_STRING (VERSION_MINOR) \ |
|
49 "." MACRO_TO_STRING (VERSION_PATCH) |
|
50 #endif |
|
51 |
|
52 // ------------------------------------------------------------------------------------------------- |
|
53 // Returns the bare version string (1.2.3) |
34 // Returns the bare version string (1.2.3) |
54 |
35 const char* version_string(); |
55 inline const char* version_string() |
|
56 { |
|
57 return VERSION_STRING; |
|
58 } |
|
59 |
36 |
60 // Returns full version string, with hash (1.2.3-abcd456) |
37 // Returns full version string, with hash (1.2.3-abcd456) |
61 const char* full_version_string(); |
38 const char* full_version_string(); |
62 |
39 |
63 // Returns changeset date string |
40 // Returns changeset date string |