summaryrefslogtreecommitdiff
path: root/standard.mac
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-30 10:42:30 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-30 10:42:30 -0700
commit418ca70d4e973cdd63195c266614acc45216b3f4 (patch)
tree0625a5438b7c932421203f14ffd2577c8b414d11 /standard.mac
parent5ff39dc78d06991d4161698cfbd7b6084af4fb37 (diff)
downloadnasm-418ca70d4e973cdd63195c266614acc45216b3f4.tar.gz
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.mac8
1 files changed, 8 insertions, 0 deletions
diff --git a/standard.mac b/standard.mac
index 52f1c579..23dcb543 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