From 94117d527169713839d25ac7b651a78c30a6a266 Mon Sep 17 00:00:00 2001 From: Reece Date: Fri, 29 Oct 2021 10:47:22 +0100 Subject: [PATCH] [+] Added kEnumInvalid --- Include/AuroraEnum.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Include/AuroraEnum.hpp b/Include/AuroraEnum.hpp index 7365522..164e7f3 100644 --- a/Include/AuroraEnum.hpp +++ b/Include/AuroraEnum.hpp @@ -86,6 +86,7 @@ using AuConsumer = std::function; static inline const AuString & name ## ToString(name val) { static const AuString invalid = "kEnumCount"; if (static_cast(val) >= static_cast(name::kEnumCount)) return invalid; return k ## name ## ToString[static_cast(val)]; } \ static inline void name ## ForEach(const AuConsumer &consumer) { AU_FOR_EACH_THAT(AUE_EMIT_CALL, name, AUE_STRIP_BRACKETS(vals)) } \ static const AuUInt k ## name ## Count = static_cast(name::kEnumCount); \ + static const name k ## name ## Invalid = name::kEnumCount; \ static const name k ## name ## MaxLegal = static_cast(k ## name ## Count - 1); \ static const name k ## name ## MinLegal = static_cast(0);