Use proper bracing on setting warnings in comman line parsing
[nasm.git] / test / ifenv.asm
blob15f12f88bc3ddee412b932220455e481d8ecf5b3
1 %macro import 1
2 %defstr %%incfile %!PROJECTBASEDIR/%{1}.inc
3 %defstr %%decfile %!'PROJECTBASEDIR'/%{1}.dec
4 db %%incfile, `\n`
5 db %%decfile, `\n`
6 %endmacro
8 %ifenv PROJECTBASEDIR
9 import foo
10 %else
11 %warning No PROJECTBASEDIR defined
12 %endif
14 %ifenv %!PROJECTBASEDIR
15 import foo
16 %else
17 %warning No PROJECTBASEDIR defined
18 %endif
20 %ifenv 'PROJECTBASEDIR'
21 import foo
22 %else
23 %warning No PROJECTBASEDIR defined
24 %endif
26 %ifenv %!'PROJECTBASEDIR'
27 import foo
28 %else
29 %warning No PROJECTBASEDIR defined
30 %endif