diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-08-21 16:27:56 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-10-03 11:46:34 +0200 |
commit | 2b482e39a90fa1929e0fa4006861f4264f28adb2 (patch) | |
tree | 0af5ef229d25bef1b974445406fc3c9d28c0756f /docs/yaml/functions/set_variable.yaml | |
parent | ad65a699f93a7659739287882ca27c58c564670b (diff) | |
download | meson-2b482e39a90fa1929e0fa4006861f4264f28adb2.zip meson-2b482e39a90fa1929e0fa4006861f4264f28adb2.tar.gz meson-2b482e39a90fa1929e0fa4006861f4264f28adb2.tar.bz2 |
docs: Add the YAML Reference manual
Diffstat (limited to 'docs/yaml/functions/set_variable.yaml')
-rw-r--r-- | docs/yaml/functions/set_variable.yaml | 16 |
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 0000000..19dc2e1 --- /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 |