--- a/sources/version.h Mon Jan 25 04:15:31 2016 +0200 +++ b/sources/version.h Wed Jul 20 12:55:39 2016 +0300 @@ -1,5 +1,5 @@ /* - Copyright 2014, 2015 Teemu Piippo + Copyright 2014 - 2016 Teemu Piippo All rights reserved. Redistribution and use in source and binary forms, with or without @@ -29,37 +29,15 @@ */ #pragma once -#include "basics.h" -#define APPNAME "zfc9000" -#define VERSION_MAJOR 1 -#define VERSION_MINOR 1 -#define VERSION_PATCH 0 -// #define IS_RELEASE - -// ------------------------------------------------------------------------------------------------- -// Version string -#if VERSION_PATCH == 0 -# define VERSION_STRING \ - MACRO_TO_STRING (VERSION_MAJOR) \ - "." MACRO_TO_STRING (VERSION_MINOR) -#else -# define VERSION_STRING \ - MACRO_TO_STRING (VERSION_MAJOR) \ - "." MACRO_TO_STRING (VERSION_MINOR) \ - "." MACRO_TO_STRING (VERSION_PATCH) -#endif +// Returns the application name (ZFC9000) +const char* application_name(); -// ------------------------------------------------------------------------------------------------- // Returns the bare version string (1.2.3) - -inline const char* version_string() -{ - return VERSION_STRING; -} +const char* version_string(); // Returns full version string, with hash (1.2.3-abcd456) const char* full_version_string(); // Returns changeset date string -const char* changeset_date_string(); \ No newline at end of file +const char* changeset_date_string();