aboutsummaryrefslogtreecommitdiff
path: root/buildtools/codegen/CodegenDecl.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-05-29 18:30:03 -0700
committerrtk0c <[email protected]>2022-05-29 18:30:03 -0700
commit5112858f9a4adcf76240bcddad19179a5c56d4f3 (patch)
tree22baae0ae1f74be2c9aee241f061cb91f3c30e88 /buildtools/codegen/CodegenDecl.hpp
parent32f00c086b35c5bc32d800b96253b378b9367580 (diff)
Changeset: 47 Add fromstring codegen for enums
Diffstat (limited to 'buildtools/codegen/CodegenDecl.hpp')
-rw-r--r--buildtools/codegen/CodegenDecl.hpp4
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 {