From b51bce070eead2b65e56f087acf23829a6304ae2 Mon Sep 17 00:00:00 2001 From: Nicholas Vinson Date: Mon, 4 Sep 2023 13:04:00 -0400 Subject: Add macro_name option to configure_file Allow macro_name to be speficied as a parameter to configure_file(). This allows C macro-style include guards to be added to configure_file()'s output when a template file is not given. This change simplifies the creation of configure files that define macros with dynamic names and want the C-style include guards. --- docs/yaml/functions/configure_file.yaml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/yaml') diff --git a/docs/yaml/functions/configure_file.yaml b/docs/yaml/functions/configure_file.yaml index 6fb972b..34cb3c1 100644 --- a/docs/yaml/functions/configure_file.yaml +++ b/docs/yaml/functions/configure_file.yaml @@ -144,3 +144,10 @@ kwargs: Set the file encoding for the input and output file. The supported encodings are those of python3, see [standard-encodings](https://docs.python.org/3/library/codecs.html#standard-encodings). + + macro_name: + type: str + since: 1.3.0 + description: | + When specified, macro guards will be used instead of '#pragma once'. The + macro guard name will be the specified name. -- cgit v1.1