mirror of
https://github.com/VARCem/Vasm.git
synced 2026-04-22 21:29:43 +00:00
include file issue #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @waltje on GitHub (Apr 26, 2023).
Including a file using the "filename" method should always consider that filename as being relative to the caller, i.e. the file doing the include.
So, if we have a file "test.asm", which does a
.include "foo.inc"
it should find "foo.inc" in the same directory as the source file (test.asm) itself.
This should also go for files included by other files, possibly in different
locations:
test.asm foo.inc xxx.inc
include "foo/foo.inc" include "bar/bla/xxx.inc"
. / foo /bar/bla/ xxx.inc
Currently, "xxx.inc" would be looked for in the "local" path relative to the
original caller, aka "test.inc". Its path is "./bar/bla/xxx.inc".
@waltje commented on GitHub (Jun 24, 2023):
Fixed in #e4a00df.