parent
1821598fbb
commit
057f7e4aae
2 changed files with 14 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||||||
|
project('silent_or', 'c') |
||||||
|
|
||||||
|
if get_option('foo') == 'true' or get_option('foo') == 'auto' |
||||||
|
|
||||||
|
else |
||||||
|
error('This case is fine - this error isn't triggered.') |
||||||
|
endif |
||||||
|
|
||||||
|
if get_option('foo') == 'true' |
||||||
|
or get_option('foo') == 'auto' |
||||||
|
else |
||||||
|
error('This error is triggered because the or statement is silently ignored.') |
||||||
|
endif |
@ -0,0 +1 @@ |
|||||||
|
option('foo', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto') |
Loading…
Reference in new issue