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/cli/module | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build/cli/module') diff --git a/build/cli/module b/build/cli/module index cf6258f..221e6a0 100644 --- a/build/cli/module +++ b/build/cli/module @@ -6,14 +6,17 @@ #define BUILD_CLI_MODULE #include +#include + #include namespace build { namespace cli { - extern "C" void - cli_init (scope&, scope&, const location&, std::unique_ptr&, bool); + extern "C" bool + cli_init ( + scope&, scope&, const location&, unique_ptr&, bool, bool); } } -- cgit v1.1