diff options
| author | gingerBill <bill@gingerbill.org> | 2018-08-28 20:03:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-08-28 20:03:27 +0100 |
| commit | ae2af8315ee8538774efe2cf608d4be50be5305a (patch) | |
| tree | d810da5415b8af9808d40153b9499b6e91dc90fd /src/entity.cpp | |
| parent | adbb3bb75fc161988fb6e4fdf07260601a846aaa (diff) | |
Allow for default parameters that are non-constant entities, but not any non-constant expression
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index ea2f8c119..5a112e5a2 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -62,11 +62,15 @@ enum ParameterValueKind { ParameterValue_Constant, ParameterValue_Nil, ParameterValue_Location, + ParameterValue_Value, }; struct ParameterValue { ParameterValueKind kind; - ExactValue value; + union { + ExactValue value; + Ast *ast_value; + }; }; |