diff options
author | Tristan Partin <tristan@partin.io> | 2021-08-10 18:02:39 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-08-16 14:05:13 -0400 |
commit | 1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0 (patch) | |
tree | 2e1c5181e7f19634d51c0ea18f16ca27b8797559 /docs/markdown/Reference-manual.md | |
parent | a2f110ff771cf94d9d13d1e1d32de99a74787cf2 (diff) | |
download | meson-1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0.zip meson-1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0.tar.gz meson-1dc13e9951a5ce38edb93718ab5ac7b1bf6616d0.tar.bz2 |
Add unset_variable()
This should be useful for helping to control variable scope within
Meson. CMake has something similar for controlling scope.
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r-- | docs/markdown/Reference-manual.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 81a6daf..6454830 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1852,6 +1852,17 @@ Defined tests can be run in a backend-agnostic way by calling `meson test` inside the build dir, or by using backend-specific commands, such as `ninja test` or `msbuild RUN_TESTS.vcxproj`. +### unset_variable() + +*(since 0.60.0)* + +```meson + void unset_variable(varname) +``` + +Unsets a variable. Referencing a variable which has been unset is an error until +it has been set again. + ### vcs_tag() ``` meson |