From 5c369faa461ec4416d2d4b231a5b36963a7315ce Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Apr 2016 13:06:50 +0200 Subject: Implement value typing, null support via value attributes For example: v = [null] v = [string] abc v += ABC # abcABC --- build2/context | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/context') diff --git a/build2/context b/build2/context index bd56dbb..ed2b0ab 100644 --- a/build2/context +++ b/build2/context @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -17,7 +18,6 @@ namespace build2 { class scope; class file; - struct variable; extern dir_path work; extern dir_path home; @@ -49,7 +49,7 @@ namespace build2 { const variable& var; // Original variable. const variable& ovr; // Override variable. - names val; + value val; }; using variable_overrides = vector; -- cgit v1.1