mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-03 08:41:02 +08:00
077fb93d2b
Allow non-identifier characters in the name of environment variables, by surrounding them with string quotes (subject to ordinary string-quoting rules.) Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
32 lines
495 B
NASM
32 lines
495 B
NASM
%macro import 1
|
|
%defstr %%incfile %!PROJECTBASEDIR/%{1}.inc
|
|
%defstr %%decfile %!'PROJECTBASEDIR'/%{1}.dec
|
|
db %%incfile, `\n`
|
|
db %%decfile, `\n`
|
|
%endmacro
|
|
|
|
%ifenv PROJECTBASEDIR
|
|
import foo
|
|
%else
|
|
%warning No PROJECTBASEDIR defined
|
|
%endif
|
|
|
|
%ifenv %!PROJECTBASEDIR
|
|
import foo
|
|
%else
|
|
%warning No PROJECTBASEDIR defined
|
|
%endif
|
|
|
|
%ifenv 'PROJECTBASEDIR'
|
|
import foo
|
|
%else
|
|
%warning No PROJECTBASEDIR defined
|
|
%endif
|
|
|
|
%ifenv %!'PROJECTBASEDIR'
|
|
import foo
|
|
%else
|
|
%warning No PROJECTBASEDIR defined
|
|
%endif
|
|
|