aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-27 13:29:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-27 13:29:49 +0200
commitbdcca31f9174b342a9e125206df4c4bd11b2dda5 (patch)
treefb6d5720f4bb77bf38ba33d48b9d6aa9b286ee95 /libbuild2/context.hxx
parent7debe1e029cc1b09676ce3a8401ab21e45e82b7e (diff)
Redo module context pointer
Diffstat (limited to 'libbuild2/context.hxx')
-rw-r--r--libbuild2/context.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx
index 57ae65d..b5dbd3c 100644
--- a/libbuild2/context.hxx
+++ b/libbuild2/context.hxx
@@ -392,20 +392,20 @@ namespace build2
// setup to point to itself (see import_module() for details).
//
context* module_context;
- optional<unique_ptr<context>> module_context_storage; //@@ CTX: shared_ptr
+ optional<unique_ptr<context>> module_context_storage;
public:
- // If mod_ctx is absent, then automatic updating of build system modules
- // is disabled. If it is NULL, then the context will be created lazily if
- // and when necessary. Otherwise, it should be a properly setup context
- // (including, normally, a self-reference in modules_context).
+ // If module_context is absent, then automatic updating of build system
+ // modules is disabled. If it is NULL, then the context will be created
+ // lazily if and when necessary. Otherwise, it should be a properly setup
+ // context (including, normally, a self-reference in modules_context).
//
explicit
context (scheduler&,
bool dry_run = false,
bool keep_going = true,
const strings& cmd_vars = {},
- optional<unique_ptr<context>> mod_ctx = unique_ptr<context> ());
+ optional<context*> module_context = nullptr);
// Set current meta-operation and operation.
//