aboutsummaryrefslogtreecommitdiff
path: root/build/bin/module
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-02 11:37:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-02 11:37:15 +0200
commit9891b20350021ce41a950645dd76df20a45c92cc (patch)
tree0cd27041b0c3413e17b9319ae99e87c5e745b1ff /build/bin/module
parent74212589a797ca75e55f92a522e198915c0dbaf6 (diff)
Implement optional module loading
The syntax is: using? cli Now each module use results in two bool variables: <module>.loaded and <module>.configured. Also implement variable visibility (the above two variables are limited to project).
Diffstat (limited to 'build/bin/module')
-rw-r--r--build/bin/module7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/bin/module b/build/bin/module
index b87a0b0..5dd720f 100644
--- a/build/bin/module
+++ b/build/bin/module
@@ -6,14 +6,17 @@
#define BUILD_BIN_MODULE
#include <build/types>
+#include <build/utility>
+
#include <build/module>
namespace build
{
namespace bin
{
- extern "C" void
- bin_init (scope&, scope&, const location&, std::unique_ptr<module>&, bool);
+ extern "C" bool
+ bin_init (
+ scope&, scope&, const location&, unique_ptr<module>&, bool, bool);
}
}