From ae2af8315ee8538774efe2cf608d4be50be5305a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 28 Aug 2018 20:03:27 +0100 Subject: Allow for default parameters that are non-constant entities, but not any non-constant expression --- src/entity.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/entity.cpp') 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; + }; }; -- cgit v1.2.3