diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-18 20:13:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-18 20:13:20 +0100 |
| commit | 3baddd4116e84c4f9175f42a074f3d2599aa4979 (patch) | |
| tree | e9af03b7e2602ace1812f1b9fce34f692addac6b /src/entity.cpp | |
| parent | 6ae468828cc0aa4f7cff54919f9c3eca0850f931 (diff) | |
Improve `init_string` determination for constants
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index a27b7cb37..3926678fd 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -93,7 +93,9 @@ struct ParameterValue { }; }; - +enum EntityConstantFlags : u32 { + EntityConstantFlag_ImplicitEnumValue = 1<<0, +}; // An Entity is a named "thing" in the language struct Entity { @@ -126,6 +128,7 @@ struct Entity { struct { ExactValue value; ParameterValue param_value; + u32 flags; } Constant; struct { Ast *init_expr; // only used for some variables within procedure bodies |