aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/unset_variable.md
blob: 7b2bcdbbe895780a3dec4ead6c0b246b39415af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## `unset_variable()`

`unset_variable()` can be used to unset a variable. Reading a variable after
calling `unset_variable()` will raise an exception unless the variable is set
again.

```meson
# tests/meson.build
tests = ['test1', 'test2']

# ...

unset_variable('tests')

# tests is no longer usable until it is set again
```