Improve init_string determination for constants

This commit is contained in:
gingerBill
2021-04-18 20:13:20 +01:00
parent 6ae468828c
commit 3baddd4116
3 changed files with 26 additions and 2 deletions

View File

@@ -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