aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-13 22:54:39 +0200
committerGitHub <noreply@github.com>2017-11-13 22:54:39 +0200
commit49eb33ff5563e68bc89b399935923b892a99b54f (patch)
tree2e0abdfefe5f98a2ef596a6996ed94cce01e5a8e /docs/markdown
parent897fd0bd169a5333b8b15af6b6e102ab53fe5cdf (diff)
parent26e731c7caf575799e88fe393ba8c2a3a7c42073 (diff)
downloadmeson-49eb33ff5563e68bc89b399935923b892a99b54f.zip
meson-49eb33ff5563e68bc89b399935923b892a99b54f.tar.gz
meson-49eb33ff5563e68bc89b399935923b892a99b54f.tar.bz2
Merge pull request #2000 from t-chaik/tchaik/wip/get-unquoted
config data: add .get_unquoted() convenience method to get quoted string unquoted
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md5
-rwxr-xr-xdocs/markdown/snippets/get_unquoted.md4
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index eee4405..92c8a1f 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1556,6 +1556,11 @@ page](Configuration.md) It has three methods:
value has not been set returns `default_value` if it is defined
*(added 0.38.0)* and errors out if not
+- `get_unquoted(varname, default_value)` returns the value of `varname`
+ but without surrounding double quotes (`"`). If the value has not been
+ set returns `default_value` if it is defined and errors out if not.
+ Available since 0.43.0
+
- `has(varname)`, returns `true` if the specified variable is set
- `merge_from(other)` takes as argument a different configuration data
diff --git a/docs/markdown/snippets/get_unquoted.md b/docs/markdown/snippets/get_unquoted.md
new file mode 100755
index 0000000..5f8969d
--- /dev/null
+++ b/docs/markdown/snippets/get_unquoted.md
@@ -0,0 +1,4 @@
+# `get_unquoted()` mehod for the `configuration` data object
+
+New convenience method that allow reusing a variable value
+defined quoted. Useful in C for config.h strings for example.