From b85b7ad1e985c14d0420002229665c9edda53ab5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 23 Aug 2019 16:27:20 +0200 Subject: Functions --- libbuild2/context.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libbuild2/context.cxx') diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index 23cef44..f6b9a90 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -11,6 +11,7 @@ #include #include #include +#include #include #include // uncaught_exceptions @@ -44,6 +45,7 @@ namespace build2 target_set targets; variable_pool var_pool; variable_overrides var_overrides; + function_map functions; data (context& c): scopes (c), targets (c), var_pool (&c /* global */) {} }; @@ -59,7 +61,8 @@ namespace build2 global_scope (create_global_scope (data_->scopes)), targets (data_->targets), var_pool (data_->var_pool), - var_overrides (data_->var_overrides) + var_overrides (data_->var_overrides), + functions (data_->functions) { tracer trace ("context"); @@ -68,6 +71,8 @@ namespace build2 scope_map& sm (data_->scopes); variable_pool& vp (data_->var_pool); + register_builtin_functions (functions); + // Initialize the meta/operation tables. Note that the order should match // the id constants in . // -- cgit v1.1