mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-15 09:09:58 +08:00
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
|
||
|
|