From 9891b20350021ce41a950645dd76df20a45c92cc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Dec 2015 11:37:15 +0200 Subject: Implement optional module loading The syntax is: using? cli Now each module use results in two bool variables: .loaded and .configured. Also implement variable visibility (the above two variables are limited to project). --- build/target | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build/target') diff --git a/build/target b/build/target index 66daa66..2aea7ae 100644 --- a/build/target +++ b/build/target @@ -283,7 +283,7 @@ namespace build lookup operator[] (const std::string& name) const { - return operator[] (variable_pool.find (name)); + return operator[] (var_pool.find (name)); } // Return a value suitable for assignment. See class scope for @@ -304,7 +304,7 @@ namespace build value& append (const std::string& name) { - return append (variable_pool.find (name)); + return append (var_pool.find (name)); } public: -- cgit v1.1