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