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/config/module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build/config/module') diff --git a/build/config/module b/build/config/module index 58d9814..530fa7b 100644 --- a/build/config/module +++ b/build/config/module @@ -6,15 +6,17 @@ #define BUILD_CONFIG_MODULE #include +#include + #include namespace build { namespace config { - extern "C" void + extern "C" bool config_init ( - scope&, scope&, const location&, std::unique_ptr&, bool); + scope&, scope&, const location&, unique_ptr&, bool, bool); } } -- cgit v1.1