From 07ca24c610eb09bcbaa137b4bf770b905720cddf Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 6 Jul 2021 17:29:26 +0200 Subject: [PATCH] Move the YBCON_VERSION redefinition to Yerbacon.hpp. --- src/headers/Yerbacon.hpp | 4 ++++ src/headers/misc.hpp | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/headers/Yerbacon.hpp b/src/headers/Yerbacon.hpp index 50bfb90..3fd9079 100644 --- a/src/headers/Yerbacon.hpp +++ b/src/headers/Yerbacon.hpp @@ -1,6 +1,10 @@ #ifndef YERBACON_HPP #define YERBACON_HPP +#ifndef YBCON_VERSION +#define YBCON_VERSION "UNKNOWN" +#endif + namespace Yerbacon { consteval const char* getVersion() noexcept { return YBCON_VERSION; } } diff --git a/src/headers/misc.hpp b/src/headers/misc.hpp index 9a61602..ad270f2 100644 --- a/src/headers/misc.hpp +++ b/src/headers/misc.hpp @@ -1,10 +1,6 @@ #ifndef YERBACON_MISC_HPP #define YERBACON_MISC_HPP -#ifndef YBCON_VERSION -#define YBCON_VERSION "UNKNOWN" -#endif - string getFileContent(const string& file); void outputFileContent(const string& file, string_view content);