From 3baddd4116e84c4f9175f42a074f3d2599aa4979 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 18 Apr 2021 20:13:20 +0100 Subject: Improve `init_string` determination for constants --- src/entity.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/entity.cpp') 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 -- cgit v1.2.3