diff options
Diffstat (limited to 'buildtools/codegen/CodegenDecl.hpp')
-rw-r--r-- | buildtools/codegen/CodegenDecl.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/codegen/CodegenDecl.hpp b/buildtools/codegen/CodegenDecl.hpp index c2d8dbb..b7c1ee4 100644 --- a/buildtools/codegen/CodegenDecl.hpp +++ b/buildtools/codegen/CodegenDecl.hpp @@ -44,10 +44,10 @@ struct DeclEnum { std::vector<DeclEnumElement> elements; EnumUnderlyingType underlyingType; // Start with invalid value, calculate on demand - EnumValuePattern pattern = EVP_COUNT; + mutable EnumValuePattern pattern = EVP_COUNT; EnumValuePattern CalcPattern() const; - void CalcPatternIfNecessary(); + EnumValuePattern GetPattern() const; }; struct DeclFunctionArgument { |