util/StringCompare: add constexpr
This commit is contained in:
parent
3e2bff296f
commit
fb961e89da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user