The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
198 B
16 lines
198 B
3 years ago
|
project('variable scope')
|
||
|
|
||
|
x = 1
|
||
|
|
||
|
assert(is_variable('x'))
|
||
|
|
||
|
assert(get_variable('x') == 1)
|
||
|
|
||
|
set_variable('x', 10)
|
||
|
|
||
|
assert(get_variable('x') == 10)
|
||
|
|
||
|
unset_variable('x')
|
||
|
|
||
|
assert(not is_variable('x'))
|