util/StringCompare: add constexpr

This commit is contained in:
Max Kellermann
2022-11-17 17:16:08 +01:00
committed by Max Kellermann
parent 3e2bff296f
commit fb961e89da

View File

@@ -12,8 +12,8 @@
#include <string_view>
[[gnu::pure]] [[gnu::nonnull]]
static inline bool
[[gnu::nonnull]]
static constexpr bool
StringIsEmpty(const char *string) noexcept
{
return *string == 0;