util/StringCompare: add constexpr

This commit is contained in:
Max Kellermann
2024-10-21 13:40:48 +02:00
committed by Max Kellermann
parent 52e2130d51
commit b745d1f226
2 changed files with 5 additions and 5 deletions

View File

@@ -11,14 +11,14 @@
#include <wchar.h>
[[gnu::pure]] [[gnu::nonnull]]
static inline bool
static constexpr bool
StringIsEmpty(const wchar_t *string) noexcept
{
return *string == 0;
}
[[gnu::pure]]
static inline bool
static constexpr bool
StringIsEqual(std::wstring_view a, std::wstring_view b) noexcept
{
return a == b;