util/StringCompare: add constexpr
This commit is contained in:
parent
3e2bff296f
commit
fb961e89da
@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
[[gnu::pure]] [[gnu::nonnull]]
|
[[gnu::nonnull]]
|
||||||
static inline bool
|
static constexpr bool
|
||||||
StringIsEmpty(const char *string) noexcept
|
StringIsEmpty(const char *string) noexcept
|
||||||
{
|
{
|
||||||
return *string == 0;
|
return *string == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user