aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scope.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/scope.hxx')
-rw-r--r--libbuild2/scope.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx
index 655a1a0..ca21a17 100644
--- a/libbuild2/scope.hxx
+++ b/libbuild2/scope.hxx
@@ -396,6 +396,12 @@ namespace build2
root_extra->meta_operations.insert (id, in);
}
+ bool
+ find_module (const string& name) const
+ {
+ return root_extra->modules.find_module<module_base> (name) != nullptr;
+ }
+
template <typename T>
T*
find_module (const string& name) const