diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-05-30 10:42:30 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-05-30 10:42:30 -0700 |
commit | 418ca70d4e973cdd63195c266614acc45216b3f4 (patch) | |
tree | 0625a5438b7c932421203f14ffd2577c8b414d11 /standard.mac | |
parent | 5ff39dc78d06991d4161698cfbd7b6084af4fb37 (diff) | |
download | nasm-418ca70d4e973cdd63195c266614acc45216b3f4.tar.gz nasm-418ca70d4e973cdd63195c266614acc45216b3f4.tar.bz2 nasm-418ca70d4e973cdd63195c266614acc45216b3f4.zip |
Introduce %depend and %pathsearch, and make incbin a macro
Introduce new preprocessor directives %depend and %pathsearch, and
make incbin a standard macro using these filenames. This lets us
remove the code that makes incbin search the path.
Diffstat (limited to 'standard.mac')
-rw-r--r-- | standard.mac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/standard.mac b/standard.mac index 52f1c57..23dcb54 100644 --- a/standard.mac +++ b/standard.mac @@ -141,3 +141,11 @@ __SECT__ %imacro default 1+.nolist [default %1] %endmacro + +%imacro incbin 1-2+.nolist 0 +%push _incbin +%pathsearch %$dep %1 +%depend %$dep + incbin %$dep,%2 +%pop +%endmacro |