From 6947bed015c33706b9a441fd47cd84f0da99097c Mon Sep 17 00:00:00 2001 From: Rémi Verschelde Date: Sun, 19 Nov 2017 21:18:01 +0100 Subject: Pass engine name and version parts as proper strings Removes the need for _MKSTR all over the place which has the drawback of converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing a compilation error. --- core/engine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/engine.cpp') diff --git a/core/engine.cpp b/core/engine.cpp index 31abcd62e..9a3c6248a 100644 --- a/core/engine.cpp +++ b/core/engine.cpp @@ -84,11 +84,11 @@ Dictionary Engine::get_version_info() const { #else dict["patch"] = 0; #endif - dict["status"] = _MKSTR(VERSION_STATUS); - dict["revision"] = _MKSTR(VERSION_REVISION); + dict["status"] = VERSION_STATUS; + dict["revision"] = VERSION_REVISION; dict["year"] = VERSION_YEAR; - String hash = String(VERSION_HASH); + String hash = VERSION_HASH; dict["hash"] = hash.length() == 0 ? String("unknown") : hash; String stringver = String(dict["major"]) + "." + String(dict["minor"]); -- cgit v1.2.3-70-g09d2