5 #define PRODUCT "AusweisApp2" 7 #define VENDOR_DOMAIN "" 8 #define COPYRIGHT_TEXT "2014-2020 " 10 #define VERSION "1.20.1" 11 #define VERSION_MAJOR 1 12 #define VERSION_MINOR 20 13 #define VERSION_PATCH 1 14 #define VERSION_TWEAK 0 17 #if defined(__BASE_FILE__) && __has_include(<string_view>) 18 #include <string_view> 20 constexpr
bool isPathSeparator(
char pChar)
22 return pChar ==
'/' || pChar ==
'\\';
26 constexpr
const char* stripPath(
const char* pPath)
29 for (
auto iter = pPath; *iter; ++iter)
31 if (isPathSeparator(*iter) && *(iter + 1))
40 constexpr std::string_view currentFile()
42 return std::string_view(stripPath(__BASE_FILE__));
46 static_assert(currentFile() ==
"Bootstrap.cpp" || currentFile() ==
"main.cpp",
"config.h include is allowed in Bootstrap.cpp and main.cpp only!");