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/markdown/snippets/configure_file_macro_guard.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/configure_file_macro_guard.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/configure_file_macro_guard.md b/docs/markdown/snippets/configure_file_macro_guard.md new file mode 100644 index 0000000..ebb4fc5 --- /dev/null +++ b/docs/markdown/snippets/configure_file_macro_guard.md @@ -0,0 +1,6 @@ +## [[configure_file]] now has a `macro_name` parameter. + +This new paramater, `macro_name` 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. -- cgit v1.1