From bdcd4211cf76bc75dd6f9a16fa3835632dfb7f20 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Sep 2021 09:57:13 +0200 Subject: Assign pre-defined semantics to config..develop variables This variable allows a project to distinguish between development and consumption builds. While normally there is no distinction between these two modes, sometimes a project may need to provide additional functionality during development. For example, a source code generator which uses its own generated code in its implementation may need to provide a bootstrap step from the pre-generated code. Normally, such a step is only needed during development. See "Project Configuration" in the manual for details. --- libbuild2/parser.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbuild2/parser.hxx') diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index b1ac8b2..4cf52e9 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -241,8 +241,12 @@ namespace build2 // Note: calls attributes_push() that the caller must pop. // + // If mode is false, assume the appropriate mode has already been switched + // to (value, `@` as pair separator, with attributes recognition). This + // can be useful, for example, if need to call peek(). + // value - parse_variable_value (token&, token_type&); + parse_variable_value (token&, token_type&, bool mode = true); void apply_variable_attributes (const variable&); -- cgit v1.1