diff options
author | Nicholas Vinson <nvinson234@gmail.com> | 2023-09-04 13:04:00 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-09-09 07:30:56 -0400 |
commit | b51bce070eead2b65e56f087acf23829a6304ae2 (patch) | |
tree | 57ce789fe3fce4ddb8fbd98d33d2cf1d697166f2 /docs/markdown | |
parent | 3c47216fe945a45834daa38f71e287dcfaf345c7 (diff) | |
download | meson-b51bce070eead2b65e56f087acf23829a6304ae2.zip meson-b51bce070eead2b65e56f087acf23829a6304ae2.tar.gz meson-b51bce070eead2b65e56f087acf23829a6304ae2.tar.bz2 |
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.
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/snippets/configure_file_macro_guard.md | 6 |
1 files changed, 6 insertions, 0 deletions
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. |