Allow multiple preinclude files (#1763)

This commit is contained in:
Rangi
2025-07-19 17:07:15 -04:00
committed by GitHub
parent 9a4593e823
commit 2935942667
9 changed files with 20 additions and 17 deletions

View File

@@ -0,0 +1,4 @@
warn "another pre-included file"
def v1 += 10
def v2 -= 10

View File

@@ -1,4 +1,6 @@
warning: preinclude.asm(0) -> preinclude.inc(1): [-Wuser]
warning: preinclude.asm(0) -> preinclude-2.inc(0) -> preinclude-1.inc(1): [-Wuser]
pre-included file
warning: preinclude.asm(0) -> preinclude-2.inc(1): [-Wuser]
another pre-included file
warning: preinclude.asm(1): [-Wuser]
main file

View File

@@ -1 +1 @@
-Weverything -P preinclude.inc
-Weverything -P preinclude-1.inc -P preinclude-2.inc

View File

@@ -4,4 +4,4 @@ rept 3
for 0/3
for 1/3
for 2/3
12 + 34 = 46
22 + 24 = 46