Move the YBCON_VERSION redefinition to Yerbacon.hpp.

This commit is contained in:
Username404-59 2021-07-06 17:29:26 +02:00
parent 3359dc7649
commit 07ca24c610
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,10 @@
#ifndef YERBACON_HPP #ifndef YERBACON_HPP
#define YERBACON_HPP #define YERBACON_HPP
#ifndef YBCON_VERSION
#define YBCON_VERSION "UNKNOWN"
#endif
namespace Yerbacon { namespace Yerbacon {
consteval const char* getVersion() noexcept { return YBCON_VERSION; } consteval const char* getVersion() noexcept { return YBCON_VERSION; }
} }

View File

@ -1,10 +1,6 @@
#ifndef YERBACON_MISC_HPP #ifndef YERBACON_MISC_HPP
#define YERBACON_MISC_HPP #define YERBACON_MISC_HPP
#ifndef YBCON_VERSION
#define YBCON_VERSION "UNKNOWN"
#endif
string getFileContent(const string& file); string getFileContent(const string& file);
void outputFileContent(const string& file, string_view content); void outputFileContent(const string& file, string_view content);