aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorNicholas Vinson <nvinson234@gmail.com>2023-09-04 13:04:00 -0400
committerXavier Claessens <xclaesse@gmail.com>2023-09-09 07:30:56 -0400
commitb51bce070eead2b65e56f087acf23829a6304ae2 (patch)
tree57ce789fe3fce4ddb8fbd98d33d2cf1d697166f2 /docs/markdown
parent3c47216fe945a45834daa38f71e287dcfaf345c7 (diff)
downloadmeson-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.md6
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.