summaryrefslogtreecommitdiff
path: root/docs/yaml/functions/set_variable.yaml
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-10-04 22:19:07 +0300
committerGitHub <noreply@github.com>2021-10-04 22:19:07 +0300
commit2d65472c725f18b343aee00bf91b9ac98c08b95f (patch)
tree530a0d6ffee4ee96e875302cbeba660c93056d41 /docs/yaml/functions/set_variable.yaml
parent75dd9fb67f793c687fa45744f3b276e35c87ca09 (diff)
parentb672ebca886dd6dc9b0f775eb769764750fd302c (diff)
downloadmeson-2d65472c725f18b343aee00bf91b9ac98c08b95f.tar.gz
Merge pull request #8960 from mensinda/yamlDoc
Reference Manual 2.0
Diffstat (limited to 'docs/yaml/functions/set_variable.yaml')
-rw-r--r--docs/yaml/functions/set_variable.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/yaml/functions/set_variable.yaml b/docs/yaml/functions/set_variable.yaml
new file mode 100644
index 000000000..19dc2e165
--- /dev/null
+++ b/docs/yaml/functions/set_variable.yaml
@@ -0,0 +1,16 @@
+name: set_variable
+returns: void
+description: |
+ Assigns a value to the given variable name. Calling
+ `set_variable('foo', bar)` is equivalent to `foo = bar`.
+
+ *(since 0.46.1)* The `value` parameter can be an array type.
+
+posargs:
+ variable_name:
+ type: str
+ description: The name of the variable to set
+
+ value:
+ type: any
+ description: The value to set the variable to