Fixed constexpr function never produces a constant expression [-Winvalid-constexpr]

This commit is contained in:
ergo720 2021-10-12 17:02:07 +02:00
parent 3bdd689e03
commit be56eac811
1 changed files with 2 additions and 2 deletions

View File

@ -293,8 +293,8 @@ constexpr const char* remove_prefix(const char* str, const char *prefix) {
return (str_skip_prefix(str, prefix) == str + str_length(prefix)) ? str_skip_prefix(str, prefix) : str;
}
static const char* xbox_prefix = "xbox::";
static const char* emupatch_prefix = "EmuPatch_"; // See #define EMUPATCH
static constexpr const char* xbox_prefix = "xbox::";
static constexpr const char* emupatch_prefix = "EmuPatch_"; // See #define EMUPATCH
constexpr const char* remove_emupatch_prefix(const char* str) {
// return an empty string when str isn't given